From ddd0520b63316ed91fe70b6981402fda9aafb2eb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 12 Apr 2025 15:43:34 +0200 Subject: left-align card display on table so it doesn't jump around update the discard view even when null --- play.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'play.js') 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() { -- cgit v1.2.3