From e201350381d09dbb1fe829a15c163a89ab67ab0f 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 | 2 +- .../src/components/chat/MessagesTimeline.tsx | 2 +- .../components/chat/ThreadDetailsPanel.tsx | 9 +++- apps/web/src/index.css | 45 +++++++++++++++---- 5 files changed, 52 insertions(+), 16 deletions(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 210f9e495d..5043e6842a 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -1375,6 +1375,7 @@ function ChatViewContent(props: ChatViewProps) { threadPanelPresentation, ), ); + const inlineThreadPanelOpen = threadPanelOpen && threadPanelPresentation === "inline"; useEffect(() => { if (!activeThreadRef) return; @@ -5000,7 +5001,10 @@ function ChatViewContent(props: ChatViewProps) { onDismiss={() => setThreadError(activeThread.id, null)} /> {/* Main content area with optional plan sidebar */} -
+
{/* Chat column */}
{/* Messages Wrapper */} @@ -5039,7 +5043,7 @@ function ChatViewContent(props: ChatViewProps) { {/* scroll to bottom pill — shown when user has scrolled away from the bottom */} {showScrollToBottom && (
diff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsx index 8dd136c5b1..10344a738c 100644 --- a/apps/web/src/components/chat/ChatComposer.tsx +++ b/apps/web/src/components/chat/ChatComposer.tsx @@ -2096,7 +2096,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps) ref={composerSurfaceRef} data-chat-composer-mobile-collapsed={isComposerCollapsedMobile ? "true" : "false"} className={cn( - "chat-composer-glass rounded-[20px] border transition-colors duration-200 has-focus-visible:border-ring/45", + "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, diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsx index ab444680be..3fc3da943b 100644 --- a/apps/web/src/components/chat/MessagesTimeline.tsx +++ b/apps/web/src/components/chat/MessagesTimeline.tsx @@ -457,7 +457,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 (