Skip to content

Commit

Permalink
fix: dialog mobile padding
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Nov 30, 2023
1 parent 44840db commit dbf59e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/demos/alert-dialog-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/>
<AlertDialog.Content
transition={flyAndScale}
class="fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-card-lg border bg-background p-7 shadow-popover outline-none md:w-full"
class="fixed left-[50%] top-[50%] z-50 grid w-full max-w-[94%] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-card-lg border bg-background p-7 shadow-popover outline-none sm:max-w-lg md:w-full"
>
<div class="flex flex-col gap-4 pb-6">
<AlertDialog.Title class="text-lg font-semibold tracking-tight"
Expand Down
2 changes: 1 addition & 1 deletion src/components/demos/dialog-demo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/>
<Dialog.Content
transition={flyAndScale}
class="fixed left-[50%] top-[50%] z-50 w-full max-w-[490px] translate-x-[-50%] translate-y-[-50%] rounded-card-lg border bg-background p-5 shadow-popover outline-none md:w-full"
class="fixed left-[50%] top-[50%] z-50 w-full max-w-[94%] translate-x-[-50%] translate-y-[-50%] rounded-card-lg border bg-background p-5 shadow-popover outline-none sm:max-w-[490px] md:w-full"
>
<Dialog.Title
class="flex w-full items-center justify-center text-lg font-semibold tracking-tight"
Expand Down

0 comments on commit dbf59e1

Please sign in to comment.