Skip to content

Commit

Permalink
fix: don't remove LeftSidebar in fullscreen mode, but hide it
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Sep 15, 2024
1 parent 9b1bfde commit d9dd603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template>
<NcContent :class="{ 'icon-loading': loading, 'in-call': isInCall }"
app-name="talk">
<LeftSidebar v-if="getUserId && !isFullscreen" ref="leftSidebar" />
<LeftSidebar v-if="getUserId" ref="leftSidebar" />
<NcAppContent>
<router-view />
</NcAppContent>
Expand Down Expand Up @@ -92,10 +92,6 @@ export default {
},
computed: {
isFullscreen() {
return this.$store.getters.isFullscreen()
},
getUserId() {
return this.$store.getters.getUserId()
},
Expand Down
1 change: 1 addition & 0 deletions src/components/TopBar/TopBarMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ export default {
this.$store.dispatch('setIsFullscreen', false)
} else {
this.enableFullscreen()
emit('toggle-navigation', { open: false })
this.$store.dispatch('setIsFullscreen', true)
}
},
Expand Down

0 comments on commit d9dd603

Please sign in to comment.