mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 04:51:46 -04:00
Merge pull request #31408 from nextcloud/enh/sidebar-preview-viewer
This commit is contained in:
commit
fd5f7486da
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)
|
||||
|
|
|
|||
4
dist/files-sidebar.js
vendored
4
dist/files-sidebar.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-sidebar.js.map
vendored
2
dist/files-sidebar.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue