From 4a3e7e1404886f8fc16e81f9ccdd48799e71a167 Mon Sep 17 00:00:00 2001 From: Bob Lee Date: Fri, 6 Nov 2026 23:45:38 +0800 Subject: [PATCH] fix(flowchat): fit tool groups to the resized reading column --- .../ui/src/flow-chat/conversation/ConversationBlocks.css | 5 ++++- .../components/modern/FLOWCHAT_SCROLL_STABILITY.md | 7 +++++++ .../flow_chat/components/modern/VirtualItemRenderer.scss | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/design-system/packages/ui/src/flow-chat/conversation/ConversationBlocks.css b/design-system/packages/ui/src/flow-chat/conversation/ConversationBlocks.css index 6dd58bd9f8..d64591faa3 100644 --- a/design-system/packages/ui/src/flow-chat/conversation/ConversationBlocks.css +++ b/design-system/packages/ui/src/flow-chat/conversation/ConversationBlocks.css @@ -485,7 +485,10 @@ .explore-region { position: relative; overflow: hidden; - width: min(100%, 900px); + /* The transcript or embedded host owns the reading width. All group kinds, + including separately virtualized headers/members, fill that same column. */ + min-width: 0; + width: 100%; margin: 0 auto; padding-block: 0; } diff --git a/src/web-ui/src/flow_chat/components/modern/FLOWCHAT_SCROLL_STABILITY.md b/src/web-ui/src/flow_chat/components/modern/FLOWCHAT_SCROLL_STABILITY.md index a0cc2a5881..9b05678752 100644 --- a/src/web-ui/src/flow_chat/components/modern/FLOWCHAT_SCROLL_STABILITY.md +++ b/src/web-ui/src/flow_chat/components/modern/FLOWCHAT_SCROLL_STABILITY.md @@ -99,6 +99,13 @@ resizing a pane never rewrites the preference. Settings → Appearance has an independent numeric control and reset backed by the same local preference. This presentation state does not travel to a workspace, peer or dispatch host. +The reading column owns the width limit. Shared FlowGroup roots (file revisions, +context loads and exploration/execution) fill their containing column without a +second fixed cap. This includes standalone headers, separately virtualized group +members, inline groups and embedded transcripts. Their existing content insets +remain intact, so group summaries, search toolbars and expanded cards align with +ordinary tool cards when the column grows beyond the default or narrows again. + Both edges resize around the existing centre axis. The visible guide occupies the middle half of the boundary, with a taller hit area retained for dragging. Pointer capture owns a diff --git a/src/web-ui/src/flow_chat/components/modern/VirtualItemRenderer.scss b/src/web-ui/src/flow_chat/components/modern/VirtualItemRenderer.scss index 0e10b0bbb8..442173fabe 100644 --- a/src/web-ui/src/flow_chat/components/modern/VirtualItemRenderer.scss +++ b/src/web-ui/src/flow_chat/components/modern/VirtualItemRenderer.scss @@ -19,7 +19,7 @@ /* * Single reading column shared by every item type (model rounds, explore - * groups, user messages, notices). Matches ChatInput's 900px so headers, + * groups, user messages, notices). Shares ChatInput's adjustable width so headers, * `>` collapse rows, and message text all sit on the same leading edge. * transcript-layout owns the shared content inset; user-bubble decoration * extends into that gutter without shifting the reading column.