From 31077e400d0c827ccfb4782b2425c11b56cddb27 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 2 Mar 2022 14:59:48 +0100 Subject: Hide preview if it is in full screen mode (viewer is open) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/src/views/Sidebar.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files') diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index 372a5b2c164..8fbf7a917f7 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -222,10 +222,10 @@ export default { active: this.activeTab, background: this.background, class: { - 'app-sidebar--has-preview': this.fileInfo.hasPreview, + 'app-sidebar--has-preview': this.fileInfo.hasPreview && !this.isFullScreen, 'app-sidebar--full': this.isFullScreen, }, - compact: !this.fileInfo.hasPreview, + compact: !this.fileInfo.hasPreview || this.isFullScreen, loading: this.loading, starred: this.fileInfo.isFavourited, subtitle: this.subtitle, @@ -300,7 +300,7 @@ export default { }, getPreviewIfAny(fileInfo) { - if (fileInfo.hasPreview) { + if (fileInfo.hasPreview && !this.isFullScreen) { return OC.generateUrl(`/core/preview?fileId=${fileInfo.id}&x=${screen.width}&y=${screen.height}&a=true`) } return this.getIconUrl(fileInfo) -- cgit v1.2.3