From a0044ce3760dd4cc6a5d269c51f0ac8264a4e933 Mon Sep 17 00:00:00 2001 From: Jakob Schott <154420406+jakobsitory@users.noreply.github.com> Date: Tue, 15 Jul 2025 15:49:26 +0200 Subject: [PATCH] chore: reduced the breakpoint (#6232) Co-authored-by: Dhruwang --- apps/web/modules/ui/components/dialog/index.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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) => (