From 918f8d92e43e91428aed1c2bda182e2ccadcc241 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Tue, 4 Aug 2026 22:01:15 -0700 Subject: [PATCH] [eric] chat: the inline browser breathes wider, height cap 400px to 480px with the same flush aspect --- frontend/src/app/pages/AgentChat/AgentChat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/pages/AgentChat/AgentChat.tsx b/frontend/src/app/pages/AgentChat/AgentChat.tsx index 8d94c6cc..fa0809df 100644 --- a/frontend/src/app/pages/AgentChat/AgentChat.tsx +++ b/frontend/src/app/pages/AgentChat/AgentChat.tsx @@ -274,7 +274,7 @@ const AgentChat: React.FC = ({ sessionId: sessionIdProp, onClose const browserSlotSx = { position: 'relative', // When the height cap bites, the WIDTH shrinks to keep the slot at the page's exact aspect (a maxHeight that broke the ratio left the live overlay letterboxed inside its own frame). - width: dockedSurfaceW > 0 && dockedSurfaceH > 0 ? `min(100%, calc(min(400px, 42vh) * ${dockedSurfaceW / dockedSurfaceH}))` : '100%', + width: dockedSurfaceW > 0 && dockedSurfaceH > 0 ? `min(100%, calc(min(480px, 52vh) * ${dockedSurfaceW / dockedSurfaceH}))` : '100%', aspectRatio: dockedSurfaceW > 0 && dockedSurfaceH > 0 ? `${dockedSurfaceW} / ${dockedSurfaceH}` : undefined, height: dockedSurfaceW > 0 && dockedSurfaceH > 0 ? 'auto' : 'min(360px, 38vh)', minHeight: 140,