Skip to content

Commit 3d303cd

Browse files
Fix mobileFullscreen dialog positioning on desktop
1 parent cce853c commit 3d303cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/ui/dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const DialogContent = React.forwardRef<
5252
fullscreen
5353
? "inset-0 w-full h-full max-w-none max-h-none p-0 rounded-none"
5454
: mobileFullscreen
55-
? "inset-0 w-full h-full max-w-none max-h-none p-0 rounded-none sm:inset-auto sm:left-[50%] sm:top-[50%] sm:w-[90%] sm:max-w-lg sm:max-h-none sm:translate-x-[-50%] sm:translate-y-[-50%] sm:p-6 sm:rounded-lg"
55+
? "inset-0 w-full h-full max-w-none max-h-none p-0 rounded-none sm:inset-auto sm:left-[50%] sm:bottom-auto sm:w-[90%] sm:max-w-lg sm:translate-x-[-50%] sm:translate-y-0 sm:p-6 sm:rounded-lg sm:top-[8%]"
5656
: "left-[50%] top-[50%] w-[90%] max-w-lg translate-x-[-50%] translate-y-[-50%] p-6 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
5757
className
5858
)}

0 commit comments

Comments
 (0)