From f9f30f15c461e996da111fdd4456e84cc3c4fdee Mon Sep 17 00:00:00 2001 From: Lambda Date: Fri, 24 Apr 2026 01:55:37 +0800 Subject: [PATCH] fix(chat): prevent chatbox jump when sending first message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ChatInput wrapper toggled between pb-8 (empty state) and pb-4 (has messages), causing a 16px vertical jump the moment hasMessages flipped. EmptyState already centers itself inside flex-1, so the extra padding wasn't needed — collapse to a single pb-4. --- packages/views/chat/components/chat-page.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/views/chat/components/chat-page.tsx b/packages/views/chat/components/chat-page.tsx index e578d0cce..e02d1550e 100644 --- a/packages/views/chat/components/chat-page.tsx +++ b/packages/views/chat/components/chat-page.tsx @@ -256,12 +256,7 @@ export function ChatPage() { )} -
+