dialog: handle overflow scrolling

This commit is contained in:
Elijah Duffy
2025-12-09 16:18:02 -08:00
parent 0bbf96585a
commit 08cde9c3ee
2 changed files with 40 additions and 2 deletions

View File

@@ -145,7 +145,8 @@
{#snippet dialog()}
<div
class={[
'fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm',
'fixed inset-0 z-50 flex items-center-safe justify-center bg-black/50 backdrop-blur-sm',
'overflow-auto p-8',
classValue
]}
transition:fade={{ duration: 150 }}
@@ -165,7 +166,7 @@
<div
bind:this={dialogContainer}
class={[
'relative max-h-[85vh] w-[90vw] rounded-xl bg-white p-6 shadow-lg',
'relative w-[90vw] rounded-xl bg-white p-6 shadow-lg',
size === 'sm' && 'max-w-[450px]',
size === 'md' && 'max-w-[650px]',
size === 'lg' && 'max-w-[850px]',