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>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
skjnldsv authored and nextcloud-command committed Sep 2, 2022
1 parent af29b97 commit d3e417e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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
Loading

0 comments on commit d3e417e

Please sign in to comment.