From 2591bbac8ff4a13a5f3a2d769b6484daecacc15f Mon Sep 17 00:00:00 2001 From: arookieofc <2128194521@qq.com> Date: Fri, 6 Nov 2026 19:24:31 +0800 Subject: [PATCH] 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 --- src/ui/Tabs.module.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/Tabs.module.css b/src/ui/Tabs.module.css index 4f5180c8e..7601bf4f7 100644 --- a/src/ui/Tabs.module.css +++ b/src/ui/Tabs.module.css @@ -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;