diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-09-01 19:17:12 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-09-02 09:58:05 +0000 |
commit | d3e417efbf27002de27a150463e5c61cbf0d7dc6 (patch) | |
tree | 2710eb3367619cee4d14fb2644efc0cd21f47733 /apps/files/src | |
parent | af29b978078ffd9169a9bd9146feccbb7974c900 (diff) | |
download | nextcloud-server-d3e417efbf27002de27a150463e5c61cbf0d7dc6.tar.gz nextcloud-server-d3e417efbf27002de27a150463e5c61cbf0d7dc6.zip |
Fix sidebar toggle
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/views/Sidebar.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index 88c4fda4f5d..78713bdd5c6 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -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') } }, |