Use bock-scroll-lock directive for the settings modal
This commit is contained in:
parent
61dd1a3b49
commit
2298ad0011
4 changed files with 10 additions and 33 deletions
|
@ -36,18 +36,6 @@ const SettingsModal = {
|
|||
modalPeeked () {
|
||||
return this.$store.state.interface.settingsModalState === 'minimized'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
// This is the only way to access the <html> element.
|
||||
modalActivated (newValue) {
|
||||
let html = document.querySelector('html')
|
||||
if (!html) return
|
||||
if (newValue) {
|
||||
html.classList.add('settings-modal-layout')
|
||||
} else {
|
||||
html.classList.remove('settings-modal-layout')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
@import 'src/_variables.scss';
|
||||
.settings-modal {
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
|
||||
&.peek {
|
||||
.settings-modal-panel {
|
||||
|
@ -16,7 +15,7 @@
|
|||
transform: translateY(calc(((100vh - 100%) / 2 + 100%) - 50px));
|
||||
|
||||
@media all and (max-width: 800px) {
|
||||
transform: translateY(calc(((100vh - 100%) / 2 + 100%) - 100px));
|
||||
transform: translateY(calc(100% - 50px));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue