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:
authorJulius Härtl <jus@bitgrid.net>2022-03-02 16:59:48 +0300
committerJulius Härtl <jus@bitgrid.net>2022-03-02 17:05:11 +0300
commit31077e400d0c827ccfb4782b2425c11b56cddb27 (patch)
tree5ef3ad7004841192c5f38371c16d6b0a7047e29f /apps/files
parent6261d6731a6bde7616370432e78f7362b2126a88 (diff)
Hide preview if it is in full screen mode (viewer is open)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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)