From d095531bb8d3483adf150d00ed9ec6e2a71627f0 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Sun, 7 Jun 2026 01:55:20 +0800 Subject: [PATCH] refactor(frontend): unify chat content rail alignment Normalize the chat content rail around the input composer as the width baseline. This introduces shared rail variables, compensates message content for the actual scrollbar gutter, and separates mobile/webview behavior so desktop, mobile web, and app shell layouts stay centered consistently. Align assistant text, markdown blocks, tables, minimal-mode summaries, expanded minimal steps, slash/runtime/git floating UI, and brief-message separators to the same horizontal rail. Remove the collapsed right resize handle and mobile menu glow while preserving the intended percentage widths for floating composer affordances. Validation: npm run build --silent 2>&1 | tail -n 5 --- static/src/App.vue | 29 ++++++++----- static/src/components/chat/ChatArea.vue | 26 ++++++++++++ static/src/components/chat/MinimalBlocks.vue | 15 ++++--- static/src/components/input/InputComposer.vue | 2 +- .../styles/components/chat/_chat-area.scss | 42 ++++++++++++++----- .../styles/components/input/_composer.scss | 16 +++---- .../styles/components/overlays/_overlays.scss | 4 +- 7 files changed, 97 insertions(+), 37 deletions(-) diff --git a/static/src/App.vue b/static/src/App.vue index 9be8e59..c1bbb55 100644 --- a/static/src/App.vue +++ b/static/src/App.vue @@ -123,6 +123,7 @@ :class="{ 'chat-container--immersive': workspaceCollapsed, 'chat-container--mobile': isMobileViewport, + 'chat-container--app-shell': isAppShell, 'chat-container--monitor': chatDisplayMode === 'monitor', 'has-title-ribbon': titleRibbonVisible }" @@ -370,11 +371,6 @@ @reset-context="resetGitChangesContext" /> -
@@ -818,7 +814,7 @@