From 00e7dd523d7b011309a1743bbe662241941e5f7a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 7 Jan 2024 00:15:03 +0100 Subject: Fix "The Fog" display. --- play.html | 4 ++++ play.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/play.html b/play.html index 42d9e50..3de7ab5 100644 --- a/play.html +++ b/play.html @@ -272,6 +272,10 @@ main { #player1 .slot_cubes { align-items: start; } #player2 .slot_cubes { align-items: end; } +/* S37 Inkerman - The Fog */ +[data-card="225B"] .slot_sticks { min-height: 12px } +[data-card="225B"] .slot_cubes { height: 51px } + /* S38 Fleurus - Retreat to Nivelles */ [data-card="237A"] .slot_cubes:empty { display: none } [data-card="237A"] .slot_cubes:not(:empty) ~ .slot_sticks { display: none } diff --git a/play.js b/play.js index 3d5e30a..22e7da3 100644 --- a/play.js +++ b/play.js @@ -129,7 +129,7 @@ function create_formation_slot(id) { register_animation(e, 250) - if (card.name === "Retreat to Nivelles") { + if (card.name === "The Fog" || card.name === "Retreat to Nivelles") { ui.slot_cubes[id] = append_div(e, "slot_cubes") ui.slot_sticks[id] = append_div(e, "slot_sticks") } else { -- cgit v1.2.3