| 摘要 | Modal Grip | |
| 预览 | Theme Creator | |
| 仓库 | GitHub - VaperinaDEV/discourse-modal-grip | |
| 安装指南 | 如何安装主题或主题组件 | |
| 首次使用 Discourse 主题? | Discourse 主题使用入门指南 |
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.

