From 5c3a4e1ba31d178556a7d4e46aa709c094e90d93 Mon Sep 17 00:00:00 2001 From: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Date: Sat, 16 May 2026 17:53:32 -0400 Subject: [PATCH] fix: hide Windows titlebar app name --- src/renderer/src/App.tsx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 0f5b6a10e45..23ccdf22160 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -1123,7 +1123,14 @@ function App(): React.JSX.Element { // `titlebar-left`. Measuring only the inner control cluster left the // back/forward arrows hanging over the first tab when the sidebar was // collapsed (Cmd+B), producing a half-occluded, non-scrollable tab strip. -
+ // Why: collapsed workspace mode floats inside a w-0 sidebar wrapper; w-max + // prevents Windows Chromium from shrinking the app name down to one glyph. +
{isMac && !isFullScreen ? (
@@ -1152,7 +1159,7 @@ function App(): React.JSX.Element { ) : (
)} - {showSidebar && ( + {showSidebar && !isWindows && ( <> {settings?.showTitlebarAppName !== false && ( @@ -1360,8 +1367,14 @@ function App(): React.JSX.Element { // (see TabGroupSplitLayout), occluding that seam. Add a // `border-r` in the floating state so the vertical line // between the traffic-light/nav cluster and the tab strip - // stays visible in both states. - className={`titlebar-left${sidebarOpen ? '' : ' absolute top-0 left-0 z-10 border-r border-border'}`} + // stays visible in both states. w-max keeps the floating + // header sized to its own controls instead of the w-0 + // sidebar wrapper. + className={`titlebar-left${ + sidebarOpen + ? '' + : ' absolute top-0 left-0 z-10 w-max border-r border-border' + }`} style={{ // Why: the Sidebar resize hook updates the sidebar DOM width // directly during drag and only persists to Zustand on