Fix mobile setting modal behavior: ensure the mobile browser address bar doesn't overlap the modal top panel.

This commit is contained in:
eugenijm 2020-07-21 14:53:01 +03:00
commit dac075c61a
3 changed files with 33 additions and 1 deletions

View file

@ -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')
}
}
}
}
}