diff options
| author | l3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-01-31 20:33:22 +0200 |
|---|---|---|
| committer | l3wdfut4pwr l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-01-31 20:33:22 +0200 |
| commit | 9edce4dfa5f7c4efecd0f39fb4fd4a4c9863fe6e (patch) | |
| tree | f975a2ba9c63d10d0c28ff206ed4a7b854f39a31 /src/components/ui/dialog.tsx | |
| parent | 2eaea7a0bc84feb894f37a84110595dff76a8202 (diff) | |
add register and reset dialogs
Diffstat (limited to 'src/components/ui/dialog.tsx')
| -rw-r--r-- | src/components/ui/dialog.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 46fe445..1aaba43 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -60,7 +60,7 @@ function DialogContent({ <DialogPrimitive.Content data-slot="dialog-content" className={cn( - 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg', + 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border shadow-lg duration-200 outline-none sm:max-w-lg', className, )} {...props} @@ -70,9 +70,7 @@ function DialogContent({ <DialogPrimitive.Close data-slot="dialog-close" className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4" - > - <span className="sr-only">Close</span> - </DialogPrimitive.Close> + ></DialogPrimitive.Close> )} </DialogPrimitive.Content> </DialogPortal> |
