summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-08 00:01:22 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-08 00:45:53 +0200
commitda2a93b7c5944a4d149dcb247ccc56069b8c90d0 (patch)
treea40722374a96a81e31184882ef43de7dc2a65c0e /play.js
parentc30bb468331f44801591ae4fbfce6f4132b8c873 (diff)
downloadtime-of-crisis-da2a93b7c5944a4d149dcb247ccc56069b8c90d0.tar.gz
Tweak layout for mobile.
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/play.js b/play.js
index 114f8da..1c3e18a 100644
--- a/play.js
+++ b/play.js
@@ -667,6 +667,7 @@ let ui = {
combat_mask: document.getElementById("combat_mask"),
discard: document.getElementById("discard"),
played_header: document.getElementById("played_header"),
+ played_panel: document.getElementById("played_panel"),
played: document.getElementById("played"),
market: document.getElementById("market"),
pieces: document.getElementById("pieces"),
@@ -1448,7 +1449,7 @@ function on_update() {
ui.active_event.replaceChildren()
ui.active_event.appendChild(ui.event_cards[view.event])
- ui.played_header.className = "panel_header p_" + PLAYER_CLASS[view.current]
+ ui.played_panel.className = "panel p_" + PLAYER_CLASS[view.current]
ui.played_header.textContent = PLAYER_NAME[view.current] + " Played"
ui.played.className = "panel_body p_" + PLAYER_CLASS[view.current]
ui.played.replaceChildren()