From 4ba78d437167e7402cc1b755035b1a3cc5a2b91a Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 24 Jul 2026 00:21:17 +0200 Subject: [PATCH 1/2] Fix composer context strip alignment and glass shell - Align branch toolbar controls with the composer width - Extend the composer glass surface into the context strip - Hide the strip when no Git repository or project is active --- apps/web/src/components/BranchToolbar.tsx | 2 +- .../BranchToolbarBranchSelector.tsx | 2 +- apps/web/src/components/ChatView.tsx | 234 +++++++++--------- apps/web/src/index.css | 100 ++++++-- 4 files changed, 207 insertions(+), 131 deletions(-) diff --git a/apps/web/src/components/BranchToolbar.tsx b/apps/web/src/components/BranchToolbar.tsx index ffab9cbdf86..bee8478a4b7 100644 --- a/apps/web/src/components/BranchToolbar.tsx +++ b/apps/web/src/components/BranchToolbar.tsx @@ -248,7 +248,7 @@ export const BranchToolbar = memo(function BranchToolbar({ if (!hasActiveThread || !activeProject) return null; return ( -
+
{isMobile ? ( } - className="min-w-0 text-muted-foreground/70 hover:text-foreground/80" + className="min-w-0 max-w-full text-muted-foreground/70 hover:text-foreground/80" disabled={isInitialBranchesLoadPending || isBranchActionPending} > diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index e2437a465d7..9a3eb10a18d 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -2352,6 +2352,7 @@ function ChatViewContent(props: ChatViewProps) { terminalUiLaunchContext?.threadId === activeThreadId ? terminalUiLaunchContext : null; // Default true while loading to avoid toolbar flicker. const isGitRepo = gitStatusQuery.data?.isRepo ?? true; + const showComposerContextStrip = isGitRepo && activeProject !== null; const initialDiffPanelGitScope = gitStatusQuery.data?.hasWorkingTreeChanges === true ? "unstaged" : "branch"; const diffPanelGitStatusResolutionKey = gitStatusQuery.data ? "resolved" : "pending"; @@ -5592,119 +5593,128 @@ function ChatViewContent(props: ChatViewProps) { : undefined } > -
-
- +
+
+
+ +
-
-
-
- {isGitRepo && ( -
- -
- )} +
+
+ {showComposerContextStrip && ( +
+ +
+ )} +
Date: Fri, 24 Jul 2026 00:28:01 +0200 Subject: [PATCH 2/2] Refine dark composer context strip styling - Add subtle border and layered background treatment - Deepen the dark-mode shadow for clearer separation --- apps/web/src/index.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/web/src/index.css b/apps/web/src/index.css index dbb35aab1a2..fefa86c741b 100644 --- a/apps/web/src/index.css +++ b/apps/web/src/index.css @@ -500,6 +500,15 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil } .dark .chat-composer-context-strip::before { + border-color: rgb(255 255 255 / 7%); + background: + linear-gradient( + to bottom, + transparent 0 1rem, + rgb(0 0 0 / 18%) 1rem, + transparent calc(1rem + 10px) + ), + rgb(255 255 255 / 2%); box-shadow: 0 14px 32px -18px rgb(0 0 0 / 75%); }