Skip to content

Commit

Permalink
fix: allow scrolling in large mobile drawers (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanohly authored Oct 19, 2024
1 parent 859e322 commit 7a4a9dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/ui/drawer/drawer-content.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<DrawerOverlay />
<DrawerPrimitive.Content
class={cn(
'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border',
'bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[96%] flex-col rounded-t-[10px] border',
className,
)}
{...$$restProps}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/ui/modal/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{:else}
<Drawer.Root bind:open>
<Drawer.Content>
<div class="mx-4 mb-4">
<div class="mx-4 mb-4 overflow-y-auto">
{@render children()}
</div>
</Drawer.Content>
Expand Down

0 comments on commit 7a4a9dc

Please sign in to comment.