From e2f4af7e507a37593c6227ee2129df4682806e74 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 30 Oct 2023 12:50:42 +0100 Subject: always show available/eliminated force panels avoids funky animations when they are toggled on and off. --- play.html | 1 + play.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/play.html b/play.html index 2d5a9de..859d4fa 100644 --- a/play.html +++ b/play.html @@ -397,6 +397,7 @@ main { background-color: dimgray } flex-wrap: wrap; padding: 20px; gap: 14px; + min-height: 43px; } diff --git a/play.js b/play.js index 992e216..2432a84 100644 --- a/play.js +++ b/play.js @@ -641,9 +641,11 @@ function update_map() { } // Hide supply panels when empty + /* ui.fln_supply_panel.classList.toggle("hide", !(ui.fln_supply.childNodes.length - 1)) ui.gov_supply_panel.classList.toggle("hide", !(ui.gov_supply.childNodes.length - 1)) ui.eliminated_panel.classList.toggle("hide", !(ui.eliminated.childNodes.length - 1)) + */ for (let i = 0; i < ui.areas.length; ++i) { let e = ui.areas[i] -- cgit v1.2.3