Fix mobile setting modal behavior: ensure the mobile browser address bar doesn't overlap the modal top panel.
This commit is contained in:
parent
25a015b471
commit
dac075c61a
3 changed files with 33 additions and 1 deletions
|
|
@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue