Skip to content

Commit 46fd93d

Browse files
committed
fix(goose2): keep dialog scroll inside radix content
1 parent b652a34 commit 46fd93d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ui/goose2/src/shared/ui/alert-dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ function AlertDialogContent({
5151
<AlertDialogOverlay />
5252
<div
5353
data-slot="alert-dialog-positioner"
54-
className="pointer-events-none fixed inset-0 z-[81] grid grid-rows-[minmax(1rem,1fr)_auto_minmax(1rem,1fr)] justify-items-center overflow-y-auto px-4"
54+
className="pointer-events-none fixed inset-0 z-[81] grid place-items-center p-4"
5555
>
5656
<AlertDialogPrimitive.Content
5757
data-slot="alert-dialog-content"
5858
className={cn(
59-
"pointer-events-auto relative row-start-2 grid w-full max-w-lg gap-4 rounded-modal border bg-background p-6 shadow-modal data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
59+
"pointer-events-auto relative grid max-h-[calc(100dvh-2rem)] w-full max-w-lg gap-4 overflow-y-auto rounded-modal border bg-background p-6 shadow-modal data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
6060
className,
6161
)}
6262
{...props}

ui/goose2/src/shared/ui/dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ function DialogContent({
5757
<DialogOverlay />
5858
<div
5959
data-slot="dialog-positioner"
60-
className="pointer-events-none fixed inset-0 z-[61] grid grid-rows-[minmax(1rem,1fr)_auto_minmax(1rem,1fr)] justify-items-center overflow-y-auto px-4"
60+
className="pointer-events-none fixed inset-0 z-[61] grid place-items-center p-4"
6161
>
6262
<DialogPrimitive.Content
6363
data-slot="dialog-content"
6464
className={cn(
65-
"pointer-events-auto relative row-start-2 grid w-full max-w-lg gap-4 rounded-modal border bg-background p-6 shadow-modal data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
65+
"pointer-events-auto relative grid max-h-[calc(100dvh-2rem)] w-full max-w-lg gap-4 overflow-y-auto rounded-modal border bg-background p-6 shadow-modal data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
6666
className,
6767
)}
6868
{...props}

0 commit comments

Comments
 (0)