From 1a03d3232eca634c2c09a5e71e3be7124856afa6 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Wed, 24 Jun 2026 17:08:19 -0700 Subject: [PATCH] Reserve space for inline thread details panel - Move the inline thread panel to an absolute overlay - Add shared inset styling so the timeline and composer avoid overlap - Rename composer glass styling to the shared floating surface class --- apps/web/src/components/ChatView.tsx | 10 ++- apps/web/src/components/chat/ChatComposer.tsx | 6 +- .../src/components/chat/MessagesTimeline.tsx | 2 +- .../components/chat/ThreadDetailsPanel.tsx | 9 +- apps/web/src/index.css | 86 +++++++++++-------- 5 files changed, 68 insertions(+), 45 deletions(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 6940b35080..0950c40ccc 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -1656,6 +1656,7 @@ function ChatViewContent(props: ChatViewProps) { threadPanelPresentation, ), ); + const inlineThreadPanelOpen = threadPanelOpen && threadPanelPresentation === "inline"; useEffect(() => { if (!activeThreadRef) return; @@ -6486,7 +6487,10 @@ function ChatViewContent(props: ChatViewProps) { }} /> {/* Main content area with optional plan sidebar */} -
+
{/* Chat column */}
{/* Provider status overlays the timeline without changing its content height. */} @@ -6540,7 +6544,7 @@ function ChatViewContent(props: ChatViewProps) { {/* scroll to end pill — shown when user has scrolled away from the live edge */} {showScrollToBottom && (
diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index 2ca101da73..515251bcb0 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -2692,9 +2692,9 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) ref={composerSurfaceRef} data-chat-composer-mobile-collapsed={isComposerCollapsedMobile ? "true" : "false"} className={cn( - "rounded-[20px] transition-[background-color] duration-200", - isDragOverComposer ? "bg-accent/45 ring-1 ring-primary/70" : null, - projectSelectionRequired ? "opacity-75" : null, + "floating-glass-surface rounded-[20px] border transition-colors duration-200 has-focus-visible:border-ring/45", + isDragOverComposer ? "border-primary/70 bg-accent/45" : "border-border", + environmentUnavailable ? "opacity-75" : null, composerProviderState.composerSurfaceClassName, )} onFocusCapture={(event) => { diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx index 0adcbba951..dcccc352b2 100644 --- a/apps/web/src/components/chat/MessagesTimeline.tsx +++ b/apps/web/src/components/chat/MessagesTimeline.tsx @@ -630,7 +630,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({ maintainScrollAtEndThreshold={0.1} maintainVisibleContentPosition onScroll={handleScroll} - className="scrollbar-gutter-both h-full min-h-0 overflow-x-hidden overscroll-y-contain px-3 sm:px-5" + className="messages-timeline-scroll scrollbar-gutter-both h-full min-h-0 overflow-x-hidden overscroll-y-contain" ListHeaderComponent={listHeader} ListFooterComponent={TIMELINE_LIST_FOOTER} /> diff --git a/apps/web/src/components/chat/ThreadDetailsPanel.tsx b/apps/web/src/components/chat/ThreadDetailsPanel.tsx index 83213a73cf..ec4f7d2649 100644 --- a/apps/web/src/components/chat/ThreadDetailsPanel.tsx +++ b/apps/web/src/components/chat/ThreadDetailsPanel.tsx @@ -131,7 +131,12 @@ export function ThreadDetailsPanel(props: ThreadDetailsPanelProps) { const card = (
@@ -285,7 +290,7 @@ export function ThreadDetailsPanel(props: ThreadDetailsPanelProps) { return (