fix(chat): prevent chatbox jump when sending first message (#1582)

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.

Co-authored-by: Lambda <f252c2c5-7d1d-4f3c-b394-a61abfe673fc@users.noreply.multica.ai>
This commit is contained in:
Jiayuan Zhang
2026-04-24 02:00:12 +08:00
committed by GitHub
parent 35aca57939
commit bb767e0ea6

View File

@@ -256,12 +256,7 @@ export function ChatPage() {
<EmptyState agentName={activeAgent?.name} onPickPrompt={handleSend} />
)}
<div
className={cn(
"mx-auto w-full max-w-3xl pb-4",
hasMessages ? "" : "pb-8",
)}
>
<div className="mx-auto w-full max-w-3xl pb-4">
<ChatInput
onSend={handleSend}
onStop={handleStop}