Skip to content

Commit 1d5f3b8

Browse files
committed
style: remove !important and normalise specificity in split-pane CSS
The previous rule used a high-specificity ID selector combined with !important to force display:flex on the split pane, which was both unnecessary (ID specificity already wins over .term-pane) and inconsistent with the other two rules in the same block. Replace all three split-active rules with uniform class-based selectors (.split-active .term-pane-split, .split-active .resize-split) and add the corresponding classes to the elements in index.html. No !important is needed — two-class specificity cleanly overrides the single-class .term-pane base rule.
1 parent 6f4a4a1 commit 1d5f3b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ html, body { height: 100%; background: var(--bg); color: var(--text);
273273
.term-pane.active { display: flex; }
274274
.term-pane-inner { flex: 1; min-height: 0; position: relative; }
275275

276-
#terminal-panes.split-active .term-pane.active { display: flex; flex: 1; }
277-
#terminal-panes.split-active #terminal-pane-split { display: flex !important; flex: 1; }
278-
#terminal-panes.split-active #resize-terminal-split { display: block; margin: 0 2px; }
276+
.split-active .term-pane.active { display: flex; flex: 1; }
277+
.split-active .term-pane-split { display: flex; flex: 1; }
278+
.split-active .resize-split { display: block; margin: 0 2px; }
279279

280280
.xterm { height: 100%; }
281281
.xterm-viewport { overflow-y: auto !important; }

0 commit comments

Comments
 (0)