Hide preview if it is in full screen mode (viewer is open)

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2022-03-02 14:59:48 +01:00
parent 6261d6731a
commit 31077e400d
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF
3 changed files with 6 additions and 6 deletions

View file

@ -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)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long