summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-12 15:43:34 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-12 15:43:34 +0200
commitddd0520b63316ed91fe70b6981402fda9aafb2eb (patch)
tree43a22121cb967dfbad72881269b35ae1017e77ad /play.js
parenta98d92ca3cf044eda7b2314d5c464f95db6ec0ab (diff)
downloadvijayanagara-ddd0520b63316ed91fe70b6981402fda9aafb2eb.tar.gz
left-align card display on table so it doesn't jump around
update the discard view even when null
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/play.js b/play.js
index a5c824b..d9c7ff7 100644
--- a/play.js
+++ b/play.js
@@ -979,10 +979,13 @@ function update_discard() {
ui.discard[i].className = ""
}
}
+ } else {
+ for (let i = 0; i < 4; ++i)
+ ui.discard[i].className = ""
}
}
-window.addEventListener("resize", update_discard)
+window.addEventListener("resize", update_discard)
let once = true
function on_update() {