From 1b67be36ee3a41a998129972c0c692d0315b6889 Mon Sep 17 00:00:00 2001 From: Bkk1234 Date: Sat, 24 Oct 2026 00:42:02 +0700 Subject: [PATCH] stops: fix broken [hidden] rule - each tab shows only its own panel Root cause of 'the version is new but the old bug is back'. When the on-screen numpad CSS was removed earlier, a regex dropped the rule body of '.mu-search-mode[hidden] { display: none; }' but left the selector. CSS then parsed the following declarations as belonging to that selector: .mu-search-mode[hidden], .mu-search-field { display: flex; ... } so every mode panel rendered as flex and none of them could be hidden. The toolbar measured 341px against the mock's 245px on /stops. Restored the rule body and added '.mu-stop-grid[hidden] { display:none }' (grid was overriding hidden too, in both repos). Measured side by side with :8090/ui/#/stops - code/place/near each show only their own panel, the stop list hides on the near tab, toolbar height matches within 2px across all four states. --- frontend/src/styles/pages/stops.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/styles/pages/stops.css b/frontend/src/styles/pages/stops.css index 5c2de41..c3cbd8d 100644 --- a/frontend/src/styles/pages/stops.css +++ b/frontend/src/styles/pages/stops.css @@ -91,7 +91,7 @@ .mu-search-mode { display: block; } /* กัน .display:block ทับ attribute [hidden] — โหมดที่ไม่ได้ใช้ต้องซ่อนจริง */ - .mu-search-mode[hidden], + .mu-search-mode[hidden] { display: none; } .mu-search-field { display: flex; @@ -229,6 +229,7 @@ .mu-toolbar-count b { color: var(--c-brand-ink); font-variant-numeric: tabular-nums; } /* ===== การ์ดป้าย ===== */ + .mu-stop-grid[hidden] { display: none; } .mu-stop-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr));