Skip to content

Commit 4f060c7

Browse files
committed
ui(chat): constrain expanded diff height with scroll (max-h 300px) to match existing patterns
1 parent 32b2b2f commit 4f060c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/common/CodeAccordian.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const CodeAccordian = ({
173173
</ToolUseBlockHeader>
174174
)}
175175
{(!hasHeader || isExpanded) && (
176-
<div className="overflow-x-auto overflow-y-hidden max-w-full">
176+
<div className="overflow-x-auto overflow-y-auto max-h-[300px] max-w-full">
177177
{inferredLanguage === "diff" ? (
178178
<DiffView source={source} filePath={path} />
179179
) : (

0 commit comments

Comments
 (0)