diff --git a/packages/web/src/components/Layout.tsx b/packages/web/src/components/Layout.tsx index 03dc498e..63f193a0 100644 --- a/packages/web/src/components/Layout.tsx +++ b/packages/web/src/components/Layout.tsx @@ -19,6 +19,9 @@ export function Layout({ children }: LayoutProps) { const [showFloatingConsole, setShowFloatingConsole] = React.useState(false); const desktopSidebarCollapsed = true; // Zen mode permanently on const { currentTeam, currentUser } = useAuth(); + // On the workspace, the mobile top bar carries the project selector (row 1 of a + // 2-row mobile header: project selection, then the view bar in the page below). + const isWorkspaceRoute = location.pathname === '/' || location.pathname === '/workspace'; const navigation = [ { name: 'Workspace', href: '/', icon: Globe, description: 'Main work' }, @@ -44,21 +47,26 @@ export function Layout({ children }: LayoutProps) { {/* Static gradient background - optimized for all browsers */}
- {/* Mobile menu button */} + {/* Mobile top bar: hamburger + (on the workspace) the project selector, so the + mobile header is just two rows — project selection here, view bar below. */}
-
-
- - +
+ + {isWorkspaceRoute ? ( +
+ +
+ ) : ( + GraphDone -
+ )}
diff --git a/packages/web/src/pages/Workspace.tsx b/packages/web/src/pages/Workspace.tsx index dcf463db..b06f5bf4 100644 --- a/packages/web/src/pages/Workspace.tsx +++ b/packages/web/src/pages/Workspace.tsx @@ -90,8 +90,9 @@ export function Workspace() { {/* Responsive Layout Container */}
- {/* Left Section: Graph Selector */} -
+ {/* Left Section: Graph Selector — desktop only; on mobile the project + selector lives in the global top bar (Layout) to keep the header to 2 rows. */} +
{/* Title & Version - Compact */}