fix(server-detail): scope console tab-pane flex to :not([hidden])
The .tab-pane[data-tab="console"] flex rule added in eabb976 had equal
specificity to .tab-pane[hidden] { display: none } and came later in
the cascade, so the hidden console pane rendered display:flex right
underneath the active log pane — the page showed both at once,
doubling the inspection strip's height. Adding :not([hidden]) keeps
the hidden rule winning when the tab is inactive.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
eabb9764b9
commit
36e4b61581
1 changed files with 5 additions and 2 deletions
|
|
@ -1043,8 +1043,11 @@ div.modal.modal-wide {
|
||||||
.tab-pane[hidden] { display: none; }
|
.tab-pane[hidden] { display: none; }
|
||||||
.tab-pane .log-stream { max-height: none; } /* let pane handle scrolling */
|
.tab-pane .log-stream { max-height: none; } /* let pane handle scrolling */
|
||||||
|
|
||||||
/* Console tab pane — input pinned at bottom, transcript scrolls. */
|
/* Console tab pane — input pinned at bottom, transcript scrolls.
|
||||||
.tab-pane[data-tab="console"] {
|
:not([hidden]) keeps .tab-pane[hidden] { display: none } winning
|
||||||
|
when the tab is inactive (otherwise these rules would tie on
|
||||||
|
specificity and the later rule would defeat the hidden state). */
|
||||||
|
.tab-pane[data-tab="console"]:not([hidden]) {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
/* inherits max-height: 12rem from .tab-pane */
|
/* inherits max-height: 12rem from .tab-pane */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue