Skip to content

Commit 1c2be50

Browse files
committed
feat(ui): add max height constraint to MCP execution response
- Set max-h-96 (384px) for MCP response container - Add overflow-y-auto for scrollable content when exceeding height - Prevents long MCP responses from taking excessive vertical space
1 parent 2cb02d6 commit 1c2be50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/chat/McpExecution.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ const ResponseContainerInternal = ({
313313
return (
314314
<div
315315
className={cn("overflow-hidden", {
316-
"max-h-[100%] mt-1 pt-1 border-t border-border/25": hasArguments,
317-
"max-h-[100%] mt-1 pt-1": !hasArguments,
316+
"max-h-96 overflow-y-auto mt-1 pt-1 border-t border-border/25": hasArguments,
317+
"max-h-96 overflow-y-auto mt-1 pt-1": !hasArguments,
318318
})}>
319319
{isJson ? (
320320
<CodeBlock source={response} language="json" />

0 commit comments

Comments
 (0)