mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
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:
parent
6261d6731a
commit
31077e400d
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