Fix sidebar toggle

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
John Molakvoæ 2022-09-01 19:17:12 +02:00 committed by nextcloud-command
parent af29b97807
commit d3e417efbf
3 changed files with 4 additions and 2 deletions

View File

@ -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')
}
},

BIN
dist/files-sidebar.js vendored

Binary file not shown.

Binary file not shown.