From a721743b0a0e078fda83bb71a88dccd168dfda6a Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Wed, 8 Apr 2026 23:22:39 -0700 Subject: [PATCH] fix: improve tab bar styling and prevent tab resize on switch (#414) - Make the "+" new tab button a compact rounded icon button instead of a full-height rectangle - Increase titlebar height from 38px to 42px for better proportions - Remove font-medium from active tabs to prevent layout shift when switching between tabs --- src/renderer/src/assets/main.css | 4 ++-- src/renderer/src/components/tab-bar/EditorFileTab.tsx | 2 +- src/renderer/src/components/tab-bar/SortableTab.tsx | 4 +--- src/renderer/src/components/tab-bar/TabBar.tsx | 4 ++-- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index b289742d8..778cb09fb 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -280,8 +280,8 @@ /* ── Titlebar ────────────────────────────────────────── */ .titlebar { - height: 38px; - min-height: 38px; + height: 42px; + min-height: 42px; display: flex; flex-direction: row; align-items: center; diff --git a/src/renderer/src/components/tab-bar/EditorFileTab.tsx b/src/renderer/src/components/tab-bar/EditorFileTab.tsx index a8cd61292..f0767e752 100644 --- a/src/renderer/src/components/tab-bar/EditorFileTab.tsx +++ b/src/renderer/src/components/tab-bar/EditorFileTab.tsx @@ -128,7 +128,7 @@ export default function EditorFileTab({ )} {getEditorDisplayLabel(file)} diff --git a/src/renderer/src/components/tab-bar/SortableTab.tsx b/src/renderer/src/components/tab-bar/SortableTab.tsx index 3ffb07285..89b324f42 100644 --- a/src/renderer/src/components/tab-bar/SortableTab.tsx +++ b/src/renderer/src/components/tab-bar/SortableTab.tsx @@ -156,9 +156,7 @@ export default function SortableTab({ - - {tab.customTitle ?? tab.title} - + {tab.customTitle ?? tab.title} {tab.color && ( )