diff --git a/src/client/app/desktop/views/components/ui.vue b/src/client/app/desktop/views/components/ui.vue index bd86dd371f..18465922f2 100644 --- a/src/client/app/desktop/views/components/ui.vue +++ b/src/client/app/desktop/views/components/ui.vue @@ -2,8 +2,8 @@
- -
+ +
@@ -73,7 +73,9 @@ export default Vue.extend({ toggleZenMode() { this.zenMode = !this.zenMode; this.$nextTick(() => { - this.$store.commit('setUiHeaderHeight', this.$refs.header.$el.offsetHeight); + if (this.$refs.header) { + this.$store.commit('setUiHeaderHeight', this.$refs.header.$el.offsetHeight); + } }); } } @@ -102,4 +104,7 @@ export default Vue.extend({ > .content.sidebar.right padding-right 68px + > .content.zen + padding 0 !important +