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