From 18cd2b8823f925071ebc495f729350d0e5390d29 Mon Sep 17 00:00:00 2001 From: xxiaoxiong <2482929840@qq.com> Date: Thu, 28 May 2026 23:02:38 +0800 Subject: [PATCH] fix: cap composer shell height to prevent excessive expansion - Add max-height: min(420px, calc(100vh - 180px)) to .composer-shell - Prevents composer from dominating viewport when many files are staged - Complements existing .staged-row max-height (148px/22vh) and textarea max-height (184px/34vh) - On desktop, composer won't exceed ~420px; on smaller viewports, scales down proportionally Fixes #3155 --- apps/web/src/styles/chat.css | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/styles/chat.css b/apps/web/src/styles/chat.css index 7fdb1a41e..b36225e45 100644 --- a/apps/web/src/styles/chat.css +++ b/apps/web/src/styles/chat.css @@ -480,6 +480,7 @@ display: flex; flex-direction: column; gap: 6px; + max-height: min(420px, calc(100vh - 180px)); transition: border-color 120ms ease, box-shadow 120ms ease; } .composer-shell:focus-within {