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

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.
This commit is contained in:
Lambda
2026-04-24 01:55:37 +08:00
parent 35aca57939
commit f9f30f15c4

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}