diff options
| author | eugenijm <eugenijm@protonmail.com> | 2020-07-21 14:53:01 +0300 |
|---|---|---|
| committer | eugenijm <eugenijm@protonmail.com> | 2020-07-23 09:53:51 +0300 |
| commit | dac075c61a33eafa6778d04b9f972dbc1e1dfb57 (patch) | |
| tree | 7048fc60cdc7c3d3029bccd61c30d63d79b15435 /src/components/settings_modal/settings_modal.js | |
| parent | 25a015b4715b7e85af310bae0ed360f98aef6205 (diff) | |
Fix mobile setting modal behavior: ensure the mobile browser address bar doesn't overlap the modal top panel.
Diffstat (limited to 'src/components/settings_modal/settings_modal.js')
| -rw-r--r-- | src/components/settings_modal/settings_modal.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/components/settings_modal/settings_modal.js b/src/components/settings_modal/settings_modal.js index f0d49c91..b6880445 100644 --- a/src/components/settings_modal/settings_modal.js +++ b/src/components/settings_modal/settings_modal.js @@ -36,6 +36,21 @@ const SettingsModal = { modalPeeked () { return this.$store.state.interface.settingsModalState === 'minimized' } + }, + watch: { + modalActivated (newValue) { + if (newValue) { + let html = document.querySelector('html') + if (html) { + html.classList.add('settings-modal-layout') + } + } else { + let html = document.querySelector('html') + if (html) { + html.classList.remove('settings-modal-layout') + } + } + } } } |
