summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-18 11:46:07 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commiteb5bc4507bb8546605f051ca6acde1b136c02085 (patch)
treebdaf1f2b0c4c1d51938ea4c2714d8b12a8dd9e8e /play.js
parentba60714ad6aeffda1361f2341c550d4dd4abf3e4 (diff)
downloadandean-abyss-eb5bc4507bb8546605f051ca6acde1b136c02085.tar.gz
Put cards along right side of map if zoomed out / wide screen.
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/play.js b/play.js
index 05961fa..5b31b40 100644
--- a/play.js
+++ b/play.js
@@ -369,6 +369,11 @@ function is_action(action, arg) {
return !!(view.actions && view.actions[action] && set_has(view.actions[action], arg))
}
+function toggle_zoom2() {
+ document.querySelector("main").classList.toggle("fit")
+ toggle_zoom()
+}
+
function toggle_pieces() {
if (ui.map.classList.contains("hide_tokens")) {
ui.map.classList.remove("hide_tokens")