Skip to content

Commit 5d55c94

Browse files
fixfonclaude
andcommitted
fix(web): long commands no longer overflow the Add Action dialog
The shared Textarea uses field-sizing: content, so a long unbroken token became its min-content width and stretched the whole form past the dialog. Let it wrap anywhere so the field grows vertically instead. Display only; the stored text and line breaks are unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 18656a3 commit 5d55c94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/ui/textarea.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function Textarea({ className, size = "default", unstyled = false, ...props }: T
2929
<textarea
3030
className={cn(
3131
// Auto-grows with content up to one cap, then scrolls.
32-
"field-sizing-content min-h-17.5 max-h-64 w-full rounded-[inherit] px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)] outline-none max-sm:min-h-20.5",
32+
"field-sizing-content min-h-17.5 max-h-64 w-full rounded-[inherit] px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)] outline-none wrap-anywhere max-sm:min-h-20.5",
3333
size === "sm" &&
3434
"min-h-16.5 px-[calc(--spacing(2.5)-1px)] py-[calc(--spacing(1)-1px)] max-sm:min-h-19.5",
3535
size === "lg" && "min-h-18.5 py-[calc(--spacing(2)-1px)] max-sm:min-h-21.5",

0 commit comments

Comments
 (0)