Summary | Modal Grip | |
Preview | Theme Creator | |
Repository | GitHub - VaperinaDEV/discourse-modal-grip | |
Install Guide | How to install a theme or theme component | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
Hello
This simple theme component adds a grip to the modal. It shows on mobile touch devices above the modal. It hides the close button and centerize the title. Inspired by Add grip to mobile modals
There are some settings to modify things.
The grip is only shows up if the keyboard not. When the keyboard is visible then the border radius is 0 and the default modal header comes back with the close button etc… This is because when the keyboard visible then the modal is goes to full height and keeping the grip can cause accidentally slide down the phone notification center instead of closing modal…
There are some adjustment to other modals, like: Table Builder modal, Chat new message modal, Templates modal.
And also hid the grip from the known non dismissable modals, like discard draft modal.