diff --git a/apps/web/modules/ui/components/dialog/index.tsx b/apps/web/modules/ui/components/dialog/index.tsx index 252c52cc07..8d2fa8e321 100644 --- a/apps/web/modules/ui/components/dialog/index.tsx +++ b/apps/web/modules/ui/components/dialog/index.tsx @@ -11,7 +11,7 @@ const DialogTrigger = DialogPrimitive.Trigger; const DialogPortal = ({ children, ...props }: DialogPrimitive.DialogPortalProps) => ( -
{children}
+
{children}
); DialogPortal.displayName = DialogPrimitive.Portal.displayName; @@ -41,11 +41,11 @@ interface DialogContentProps { const getDialogWidthClass = (width: "default" | "wide" | "narrow"): string => { switch (width) { case "wide": - return "md:w-[720px] lg:w-[960px]"; + return "sm:w-[90dvw] md:w-[720px] lg:w-[960px]"; case "narrow": - return "md:w-[512px]"; + return "sm:w-[512px]"; default: - return "md:w-[720px]"; + return "sm:w-[90dvw] md:w-[720px]"; } }; @@ -73,8 +73,8 @@ const DialogContent = React.forwardRef< (
svg]:text-primary [&>svg]:absolute [&>svg]:size-4 [&>svg~*]:min-h-4 [&>svg~*]:items-center [&>svg~*]:pl-6 md:[&>svg~*]:flex", + "[&>svg]:text-primary [&>svg]:absolute [&>svg]:size-4 [&>svg~*]:min-h-4 [&>svg~*]:items-center [&>svg~*]:pl-6 sm:[&>svg~*]:flex", className )} {...props} @@ -122,7 +122,7 @@ type DialogFooterProps = Omit, "dangerously const DialogFooter = ({ className, ...props }: DialogFooterProps) => (