From a675bbe82fd7bbea0aa72f54c076dd3018180257 Mon Sep 17 00:00:00 2001 From: kobera Date: Fri, 14 Jun 2024 14:27:30 +0200 Subject: [PATCH] content default padding and close position adjusted --- .../src/lib/registry/default/ui/dialog/dialog-content.svelte | 4 ++-- .../src/lib/registry/new-york/ui/dialog/dialog-content.svelte | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/www/src/lib/registry/default/ui/dialog/dialog-content.svelte b/apps/www/src/lib/registry/default/ui/dialog/dialog-content.svelte index 9512ba81a..8f03dacb6 100644 --- a/apps/www/src/lib/registry/default/ui/dialog/dialog-content.svelte +++ b/apps/www/src/lib/registry/default/ui/dialog/dialog-content.svelte @@ -20,14 +20,14 @@ {transition} {transitionConfig} class={cn( - "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg sm:rounded-lg md:w-full", + "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 pb-[max(1.5rem,env(safe-area-inset-bottom))] pt-[max(1.5rem,env(safe-area-inset-top))] shadow-lg sm:rounded-lg md:w-full", className )} {...$$restProps} > Close diff --git a/apps/www/src/lib/registry/new-york/ui/dialog/dialog-content.svelte b/apps/www/src/lib/registry/new-york/ui/dialog/dialog-content.svelte index 9d04f57fe..f4f87398c 100644 --- a/apps/www/src/lib/registry/new-york/ui/dialog/dialog-content.svelte +++ b/apps/www/src/lib/registry/new-york/ui/dialog/dialog-content.svelte @@ -20,14 +20,14 @@ {transition} {transitionConfig} class={cn( - "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg sm:rounded-lg md:w-full", + "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 pb-[max(1.5rem,env(safe-area-inset-bottom))] pt-[max(1.5rem,env(safe-area-inset-top))] shadow-lg sm:rounded-lg md:w-full", className )} {...$$restProps} > Close