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.
This commit is contained in:
1 parent
18f7a6e34b
commit
1b67be36ee
1 file changed
+2
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user