From 82da9433469255e42e33e16fed6a4d4cefa9777f Mon Sep 17 00:00:00 2001 From: Bohan Jiang <52446949+Bohan-J@users.noreply.github.com> Date: Thu, 23 Jul 2026 11:25:30 +0800 Subject: [PATCH] fix(chat): scale the composer max height with the chat surface (MUL-5196) (#5815) The chat composer was capped at a fixed max-h-40 (160px), so a long draft was previewed through a five-line porthole no matter how large the chat window was. Cap the composer at 50% of the surface it sits on instead, with a 384px absolute ceiling, and let the card shrink into that cap via a flex-column wrapper. Verified in Chromium across all four surfaces that mount ChatInput (floating window at min and expanded size, chat tab, agent builder): a long draft caps at min(50% of the surface, 384px) and scrolls internally, a short draft still hugs its content, and the message list keeps space. Co-authored-by: Bohan-J Co-authored-by: multica-agent --- packages/views/chat/components/chat-input.tsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/views/chat/components/chat-input.tsx b/packages/views/chat/components/chat-input.tsx index cd4004301..5bfdfdb3d 100644 --- a/packages/views/chat/components/chat-input.tsx +++ b/packages/views/chat/components/chat-input.tsx @@ -492,7 +492,15 @@ export function ChatInput({ return (