Merge pull request #31408 from nextcloud/enh/sidebar-preview-viewer

pull/31415/head
John Molakvoæ 2022-03-02 17:33:17 +07:00 committed by GitHub
commit fd5f7486da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

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