fix(tabs): keep close button visible in squeezed tab strip

Closable tabs in a squeezed strip kept the 40px min-width of a plain
tab, so the close slot was clipped by overflow: hidden once the label
shrank. Give squeezed closable tabs a 64px min-width and pin the close
slot with flex: none so the X hit-target always stays visible.

Fixes #1740
This commit is contained in:
arookieofc committed 2026-11-06 19:32:30 +08:00
1 parent fca9d1e08f
commit 2591bbac8f
1 file changed
+7
+7
View File
@@ -140,6 +140,13 @@
flex: 0 1 auto;
min-width: 40px;
}
/* A closable tab keeps room for its close slot: only the label shrinks. */
.squeeze .closable {
min-width: 64px;
}
.squeeze .closeSlot {
flex: none;
}
.squeeze .tabButton {
flex: 1 1 auto;
min-width: 0;