Skip to content

Commit 374bae8

Browse files
committed
fix(web): long approval commands wrap instead of scrolling sideways
1 parent bd1f22b commit 374bae8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/web/src/components/chat/ComposerPendingApprovalPanel.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ export const ComposerPendingApprovalPanel = memo(function ComposerPendingApprova
5454
<Detail
5555
aria-label={detailAriaLabel}
5656
className={cn(
57-
"block max-h-20 w-full min-w-0 overflow-auto text-xs text-foreground [scrollbar-width:thin] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70 [&::-webkit-scrollbar]:h-1.5",
57+
"block max-h-32 w-full min-w-0 overflow-auto text-xs text-foreground [scrollbar-width:thin] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70 [&::-webkit-scrollbar]:w-1.5",
58+
// Long commands wrap so every part of what is approved stays readable.
5859
approval.requestKind === "mcp-elicitation"
5960
? "whitespace-pre-wrap font-sans wrap-break-word"
60-
: "whitespace-pre font-mono",
61+
: "whitespace-pre-wrap font-mono wrap-anywhere",
6162
)}
6263
data-approval-detail="complete"
6364
tabIndex={0}

0 commit comments

Comments
 (0)