diff --git a/src/renderer/src/components/ui/dialog.tsx b/src/renderer/src/components/ui/dialog.tsx index 94d8126..f9432c8 100644 --- a/src/renderer/src/components/ui/dialog.tsx +++ b/src/renderer/src/components/ui/dialog.tsx @@ -25,6 +25,7 @@ function DialogClose({ ...props }: DialogPrimitive.Close.Props) { function DialogOverlay({ className, + style, ...props }: DialogPrimitive.Backdrop.Props) { return ( @@ -34,6 +35,7 @@ function DialogOverlay({ "fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className )} + style={{ WebkitAppRegion: "no-drag", ...style } as React.CSSProperties} {...props} /> ) @@ -56,6 +58,7 @@ function DialogContent({ "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-sm ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className )} + style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties} {...props} > {children} diff --git a/src/renderer/src/components/ui/select.tsx b/src/renderer/src/components/ui/select.tsx index 57de385..7148162 100644 --- a/src/renderer/src/components/ui/select.tsx +++ b/src/renderer/src/components/ui/select.tsx @@ -100,6 +100,7 @@ function SelectContent({ className )} position={position} + style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties} {...props} >