| ... | @@ -70,7 +70,10 @@ function AlertDialogPopup({ | ... | @@ -70,7 +70,10 @@ function AlertDialogPopup({ |
| 70 | function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">) { | 70 | function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">) { |
| 71 | return ( | 71 | return ( |
| 72 | <div | 72 | <div |
| 73 | className={cn("flex flex-col gap-2 p-6 text-center max-sm:pb-4 sm:text-left", className)} | 73 | className={cn( |
| | 74 | "flex min-h-0 flex-col gap-2 p-6 text-center max-sm:pb-4 sm:text-left", |
| | 75 | className, |
| | 76 | )} |
| 74 | data-slot="alert-dialog-header" | 77 | data-slot="alert-dialog-header" |
| 75 | {...props} | 78 | {...props} |
| 76 | /> | 79 | /> |
| ... | @@ -101,7 +104,7 @@ function AlertDialogFooter({ | ... | @@ -101,7 +104,7 @@ function AlertDialogFooter({ |
| 101 | function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.Title.Props) { | 104 | function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.Title.Props) { |
| 102 | return ( | 105 | return ( |
| 103 | <AlertDialogPrimitive.Title | 106 | <AlertDialogPrimitive.Title |
| 104 | className={cn("wrap-anywhere font-semibold text-xl leading-none", className)} | 107 | className={cn("wrap-anywhere shrink-0 font-semibold text-xl leading-none", className)} |
| 105 | data-slot="alert-dialog-title" | 108 | data-slot="alert-dialog-title" |
| 106 | {...props} | 109 | {...props} |
| 107 | /> | 110 | /> |
| ... | @@ -111,7 +114,13 @@ function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.Title.Pr | ... | @@ -111,7 +114,13 @@ function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.Title.Pr |
| 111 | function AlertDialogDescription({ className, ...props }: AlertDialogPrimitive.Description.Props) { | 114 | function AlertDialogDescription({ className, ...props }: AlertDialogPrimitive.Description.Props) { |
| 112 | return ( | 115 | return ( |
| 113 | <AlertDialogPrimitive.Description | 116 | <AlertDialogPrimitive.Description |
| 114 | className={cn("text-muted-foreground text-sm", className)} | 117 | className={cn( |
| | 118 | // A long description (say, the arguments of a tool call awaiting |
| | 119 | // approval) scrolls in place instead of pushing the actions out of |
| | 120 | // the popup, which the viewport already caps. |
| | 121 | "wrap-anywhere max-h-[min(24rem,60dvh)] min-h-0 overflow-y-auto overscroll-contain text-muted-foreground text-sm select-text", |
| | 122 | className, |
| | 123 | )} |
| 115 | data-slot="alert-dialog-description" | 124 | data-slot="alert-dialog-description" |
| 116 | {...props} | 125 | {...props} |
| 117 | /> | 126 | /> |