From e167f851fdfa5a5f81db6dee82f144cb80eeac11 Mon Sep 17 00:00:00 2001 From: indifferentketchup Date: Sat, 16 May 2026 06:36:36 +0000 Subject: [PATCH] feat(mobile): rework Session and Project headers for narrow viewports Session header: breadcrumb (Projects > project) wrapped in hidden sm:flex; active file path hidden on mobile; session name cap max-w-[140px] sm:max-w-[280px]; padding px-3 sm:px-4. Mobile gets just hamburger | session name | model pill. Project header: px-3 sm:px-6, py-2 sm:py-3, heading text-base sm:text-lg, project path hidden sm:block, "New session" button is icon-only on mobile via . Both headers retain the safe-area-inset-top padding from v1.6. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/src/pages/Project.tsx | 14 ++++----- apps/web/src/pages/Session.tsx | 57 +++++++++++++++++++++------------- 2 files changed, 42 insertions(+), 29 deletions(-) diff --git a/apps/web/src/pages/Project.tsx b/apps/web/src/pages/Project.tsx index bed2216..328aed2 100644 --- a/apps/web/src/pages/Project.tsx +++ b/apps/web/src/pages/Project.tsx @@ -81,32 +81,32 @@ export function Project() { return (
{isMobile && ( )}
-

+

{project?.name ?? '…'}

-
+
{project?.path}
-
diff --git a/apps/web/src/pages/Session.tsx b/apps/web/src/pages/Session.tsx index fcb1ddd..0a4caa5 100644 --- a/apps/web/src/pages/Session.tsx +++ b/apps/web/src/pages/Session.tsx @@ -87,33 +87,42 @@ export function Session() { return (
-
+
{isMobile && ( )} - - Projects - - - {project ? ( - - {project.name} + + {/* Breadcrumb — desktop only */} +
+ + Projects - ) : ( - - )} - + + {project ? ( + + {project.name} + + ) : ( + + )} + +
+ + {/* Session name — always visible, truncated, editable */} {editingName ? ( ) : ( )} + + {/* Active file — desktop only */} {showActiveFile && active.activeFile && ( <> - · + · {active.activeFile} )} -
+ + {/* Model picker — right-aligned */} +
{session && (