Skip to content

Commit

Permalink
fixed scroll to top of modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-zino committed Jun 23, 2023
1 parent 628e644 commit a042f83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-pigs-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@skeletonlabs/skeleton": patch
---

bugfix: fixed Scroll to the top of the modal, when the modal is bigger than the view.
4 changes: 2 additions & 2 deletions packages/skeleton/src/lib/utilities/Modal/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
export let regionFooter: CssClasses = 'flex justify-end space-x-2';
// Base Styles
const cBackdrop = 'fixed top-0 left-0 right-0 bottom-0';
const cTransitionLayer = 'w-full h-full p-4 overflow-y-auto flex justify-center';
const cBackdrop = 'fixed top-0 left-0 right-0 bottom-0 overflow-y-auto';
const cTransitionLayer = 'w-full h-fit min-h-full p-4 overflow-y-auto flex justify-center';
const cModal = 'block'; // max-h-full overflow-y-auto overflow-x-hidden
const cModalImage = 'w-full h-auto';
Expand Down

0 comments on commit a042f83

Please sign in to comment.