Commit a1158d7
viz: global [hidden] override to stop the whack-a-mole
Caught the same bug three times in two commits — every element with an
explicit display value (.detail-row display:grid, .detail-empty
display:flex, etc.) silently overrides the UA stylesheet's default
[hidden] { display: none }, so JS-set hidden=true leaves the element
visible. User saw this as: empty state + populated detail card showing
simultaneously after asset selection.
Defensive root fix: add a single global rule near the top of style.css.
[hidden] { display: none !important } applies to every element that
gains the hidden attribute, regardless of any other display value
declared elsewhere. Removed the per-element overrides now made
redundant (.detail-row, .detail-empty).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ad5e939 commit a1158d7
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
| |||
723 | 730 | | |
724 | 731 | | |
725 | 732 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | 733 | | |
732 | 734 | | |
733 | 735 | | |
| |||
0 commit comments