Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/views/Sidebar.vue6
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)