diff --git a/.changeset/witty-pigs-wave.md b/.changeset/witty-pigs-wave.md new file mode 100644 index 000000000..b1826629b --- /dev/null +++ b/.changeset/witty-pigs-wave.md @@ -0,0 +1,5 @@ +--- +"@skeletonlabs/skeleton": patch +--- + +bugfix: fixed Scroll to the top of the modal, when the modal is bigger than the view. diff --git a/packages/skeleton/src/lib/utilities/Modal/Modal.svelte b/packages/skeleton/src/lib/utilities/Modal/Modal.svelte index 47d8cfda3..8386369e1 100644 --- a/packages/skeleton/src/lib/utilities/Modal/Modal.svelte +++ b/packages/skeleton/src/lib/utilities/Modal/Modal.svelte @@ -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';