From e71f3bf3f6556bc09ae1a1813081532195e29985 Mon Sep 17 00:00:00 2001 From: Haileyesus <118998054+blackmammoth@users.noreply.github.com> Date: Mon, 29 Jun 2026 22:52:35 +0300 Subject: [PATCH] fix(chat): unify messages and composer into centered column Constrain both ChatMessagesPane content and ChatComposer to the same max-w-3xl centered column. Previously only the composer had a max-width, causing messages to fill the full width while the input stayed narrow, making them visually misaligned with large empty gutters on either side. --- src/components/chat/view/subcomponents/ChatComposer.tsx | 4 ++-- src/components/chat/view/subcomponents/ChatMessagesPane.tsx | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/chat/view/subcomponents/ChatComposer.tsx b/src/components/chat/view/subcomponents/ChatComposer.tsx index e7b36c60..bb1c4a45 100644 --- a/src/components/chat/view/subcomponents/ChatComposer.tsx +++ b/src/components/chat/view/subcomponents/ChatComposer.tsx @@ -203,7 +203,7 @@ export default function ChatComposer({ )} {pendingPermissionRequests.length > 0 && ( -
+
)} - {!hasQuestionPanel &&
+ {!hasQuestionPanel &&
{showFileDropdown && filteredFiles.length > 0 && (
{filteredFiles.map((file, index) => ( diff --git a/src/components/chat/view/subcomponents/ChatMessagesPane.tsx b/src/components/chat/view/subcomponents/ChatMessagesPane.tsx index 55be2a09..a437a4f8 100644 --- a/src/components/chat/view/subcomponents/ChatMessagesPane.tsx +++ b/src/components/chat/view/subcomponents/ChatMessagesPane.tsx @@ -163,8 +163,9 @@ function ChatMessagesPane({ ref={scrollContainerRef} onWheel={onWheel} onTouchMove={onTouchMove} - className="chat-messages-pane relative min-h-0 flex-1 space-y-3 overflow-y-auto overflow-x-hidden px-0 py-3 sm:space-y-4 sm:p-4" + className="chat-messages-pane relative min-h-0 flex-1 overflow-y-auto overflow-x-hidden py-3 sm:py-4" > +
{(isLoadingSessionMessages || isProcessing) && chatMessages.length === 0 ? (
@@ -295,6 +296,7 @@ function ChatMessagesPane({ })()} )} +
); }