diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/views/Sidebar.vue | 6 |
1 files changed, 3 insertions, 3 deletions
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) |