Skip to content

Commit

Permalink
Fix sidebar toggle
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Sep 1, 2022
1 parent af29b97 commit 992daa9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/files/src/views/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,11 @@ export default {
setFullScreenMode(isFullScreen) {
this.isFullScreen = isFullScreen
if (isFullScreen) {
document.querySelector('#content').classList.add('with-sidebar--full')
document.querySelector('#content')?.classList.add('with-sidebar--full')
|| document.querySelector('#content-vue')?.classList.add('with-sidebar--full')
} else {
document.querySelector('#content').classList.remove('with-sidebar--full')
document.querySelector('#content')?.classList.remove('with-sidebar--full')
|| document.querySelector('#content-vue')?.classList.remove('with-sidebar--full')
}
},
Expand Down

0 comments on commit 992daa9

Please sign in to comment.