Skip to content

Conversation

@bman654
Copy link
Contributor

@bman654 bman654 commented Jun 18, 2025

Currently the modal is several pages long and requires scrolling all the way to the bottom to reach the SAVE/CANCEL buttons. This is painful if you are on a device that does not have a scroll gesture (because the scrollbar is also thin and if you try to grab it and miss you almost always inadvertently cancel the modal when your miss lands outside the window).

This commit makes the header and footer of the modal sticky and only the body of the modal scrolls. Thus the SAVE/CANCEL buttons are always available.

In theory this change could be applied globally to all modals. But I limited the CSS change to just the preset modal to avoid tracking down every usage and ensuring there were no issues created by the change.

@mcmonkey4eva mcmonkey4eva merged commit 962a4cc into mcmonkeyprojects:master Jun 18, 2025
@bman654 bman654 deleted the edit-preset-scroll-behavior branch June 30, 2025 04:38
FreesoSaiFared pushed a commit to FreesoSaiFared/SwarmUI that referenced this pull request Oct 22, 2025
* Preset modal now only scrolls the body so title and save/cancel buttons are accessible without scrolling

* format fix

---------

Co-authored-by: Alex "mcmonkey" Goodwin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants