fix(app): hide app navigation when space is constrained

This commit is contained in:
Mohamed Boudra
2026-07-14 22:44:03 +02:00
parent a092fa3816
commit e3e4a97b41
+6 -7
View File
@@ -464,13 +464,6 @@ function AppContainer({ children, chromeEnabled: chromeEnabledOverride }: AppCon
useActiveWorktreeNewAction();
useGlobalNewWorkspaceAction();
const sidebarChrome = (
<SidebarChrome
showSidebar={chromeEnabled && (isCompactLayout || !isFocusModeEnabled)}
keyboardShortcutsEnabled={keyboardShortcutsEnabled}
/>
);
const appContentMinimumWidth = resolveDesktopAppContentMinimum({
isSettingsRoute: pathname.includes("/settings"),
isWorkspaceExplorerOpen: pathname.includes("/workspace/") && isDesktopFileExplorerOpen,
@@ -488,6 +481,12 @@ function AppContainer({ children, chromeEnabled: chromeEnabledOverride }: AppCon
viewportWidth,
});
const contentWindowChromeCorners = desktopSidebarRendered ? "top-right" : "both";
const sidebarChrome = (
<SidebarChrome
showSidebar={isCompactLayout ? chromeEnabled : desktopSidebarRendered}
keyboardShortcutsEnabled={keyboardShortcutsEnabled}
/>
);
const workspaceChrome = (
<View style={rowStyle}>
{!isCompactLayout ? (