fix: fix issue on tablet and smaller devices with the sidebar (#1518)

This commit is contained in:
Stefan Dej 2023-08-16 17:11:36 +02:00 committed by GitHub
parent caaf5e1606
commit 218f85c81f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
<template>
<v-navigation-drawer
:key="navigationStyle"
:value="naviDrawer"
v-model="naviDrawer"
:src="sidebarBackground"
:mini-variant="navigationStyle === 'iconsOnly'"
:width="navigationWidth"
@ -70,6 +70,10 @@ export default class TheSidebar extends Mixins(NavigationMixin, BaseMixin) {
return this.$store.state.naviDrawer
}
set naviDrawer(newVal) {
this.$store.dispatch('setNaviDrawer', newVal)
}
get navigationStyle() {
return this.$store.state.gui.uiSettings.navigationStyle
}