summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-01 22:02:52 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:17 +0100
commitc16e1df65045bcf5a5eef2a1535c39017d0aa328 (patch)
tree17580e5c87eee589e146d7b7b3a2888b8ed8384e
parentdfaac7643a383491006c2c72a054336e967f8cd3 (diff)
downloadhammer-of-the-scots-c16e1df65045bcf5a5eef2a1535c39017d0aa328.tar.gz
hammer: Tweak block alignment within areas.
Shift blocks in small areas away from each other.
-rw-r--r--ui.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui.js b/ui.js
index 5557a18..683f0af 100644
--- a/ui.js
+++ b/ui.js
@@ -425,10 +425,26 @@ function position_block(location, row, n_rows, col, n_cols, element) {
layout_major = 1;
layout_minor = 1;
break;
+ case "Argyll":
+ layout_major = 0.5;
+ layout_minor = 1.0;
+ break;
+ case "Carrick":
+ layout_major = 0.75;
+ layout_minor = 0.5;
+ break;
+ case "Dunbar":
+ layout_major = 0.25;
+ layout_minor = 0.75;
+ break;
case "Fife":
layout_major = 0.25;
layout_minor = 0.5;
break;
+ case "Lennox":
+ layout_major = 0.75;
+ layout_minor = 0.75;
+ break;
case "Mentieth":
layout_major = 0.5;
layout_minor = 0.25;