fix(modal): add missing scrolling behavior for better user experience…#9647
Open
JanThiel wants to merge 2 commits intocoollabsio:nextfrom
Open
fix(modal): add missing scrolling behavior for better user experience…#9647JanThiel wants to merge 2 commits intocoollabsio:nextfrom
JanThiel wants to merge 2 commits intocoollabsio:nextfrom
Conversation
… on smaller screens for modals with much content
There was a problem hiding this comment.
Pull request overview
Adds scrollability to the modal-input dialog content so large dialogs remain usable on smaller viewport heights (fixing inability to reach overflowing content, e.g. Hetzner create-server dialog on laptop screens).
Changes:
- Make the modal viewport (
fixed inset-0) scrollable. - Constrain modal height and introduce an internal scroll area for the slot content.
- Adjust layout wrapper to support top-aligned dialogs on small screens and centered dialogs on larger screens.
…nt cuttoffs of the content area and restore close-outside click behaviour
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
This PR introduces the ability to scroll the content slot of Dialogs.
If a dialog grows bigger than the screen height it currently is impossible to reach the parts that are outside of the viewport.
This fix is essential to allow #9646 to work on Laptop Screens like a Macbook Pro M4.
Issues
Category
Preview
This animated GIF shows the new Hetzner Create Server Dialog on a Mac Book Pro with the ability to scroll the content of the Dialog. Tested on Chrome and Safari.

AI Assistance
If AI was used:
All code written by AI was manually reviewed and locally tested using PHPStorm.
Testing
Contributor Agreement
Important