TypeScript
fix(web): long approval commands wrap inside the composer (#17802)
Exotice7308986cb9f
diff --git a/apps/web/src/components/chat/ComposerPendingApprovalPanel.tsx b/apps/web/src/components/chat/ComposerPendingApprovalPanel.tsxindex 4a114188fa9..ccb2eeabe62 100644--- a/apps/web/src/components/chat/ComposerPendingApprovalPanel.tsx+++ b/apps/web/src/components/chat/ComposerPendingApprovalPanel.tsx@@ -51,10 +51,10 @@ export const ComposerPendingApprovalPanel = memo(function ComposerPendingApprova<Detailaria-label={detailAriaLabel}className={cn(- "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",+ "block 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",approval.requestKind === "mcp-elicitation"- ? "whitespace-pre-wrap font-sans wrap-break-word"- : "whitespace-pre font-mono",+ ? "max-h-20 whitespace-pre-wrap font-sans wrap-break-word"+ : "max-h-40 whitespace-pre-wrap font-mono wrap-anywhere",)}data-approval-detail="complete"tabIndex={0}