Skip to content

Commit 4435b8c

Browse files
authored
fix: modal scrolling on mobild/small screen-width (#1571)
1 parent cb606dd commit 4435b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib/modal/Modal.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
<!-- dialog -->
139139
<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
140140
<div on:keydown={handleKeys} on:wheel|preventDefault|nonpassive use:prepareFocus use:focusTrap on:click={onAutoClose} on:mousedown={onOutsideClose} class={dialogCls} tabindex="-1" aria-modal="true" role="dialog">
141-
<div class="flex relative {sizes[size]} w-full max-h-full">
141+
<div class="flex relative {sizes[size]} w-full max-h-screen">
142142
<!-- Modal content -->
143143
<Frame rounded shadow {...$$restProps} class={frameCls} {color}>
144144
<!-- Modal header -->

0 commit comments

Comments
 (0)