mirror of
https://github.com/multica-ai/multica.git
synced 2026-06-17 03:38:32 +02:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user