diff --git a/src/models/audios.js b/src/models/audios.js index 5eaad9e26..f2ada7af7 100644 --- a/src/models/audios.js +++ b/src/models/audios.js @@ -37,4 +37,5 @@ export default { 'audio/webm', ], component: Audios, + canCompare: true, } diff --git a/src/models/images.js b/src/models/images.js index 332b1ed8c..af195859a 100644 --- a/src/models/images.js +++ b/src/models/images.js @@ -80,4 +80,5 @@ export default { ...enabledMimes, ], component: Images, + canCompare: true, } diff --git a/src/models/videos.js b/src/models/videos.js index 2491cb8f9..f7c242bf9 100644 --- a/src/models/videos.js +++ b/src/models/videos.js @@ -38,4 +38,5 @@ export default { 'video/x-matroska': 'video/webm', }, component: Videos, + canCompare: true, } diff --git a/src/views/Viewer.vue b/src/views/Viewer.vue index c225293fc..6f8f65428 100644 --- a/src/views/Viewer.vue +++ b/src/views/Viewer.vue @@ -113,65 +113,67 @@
- - - - - - - - - - - - - +
+ +
+
+ + + + + + + + + + + +
@@ -685,7 +687,7 @@ export default { // store current position this.currentIndex = this.fileList.findIndex(file => file.basename === fileInfo.basename) - } else if (group && this.el === null) { + } else if (group && this.el === null && false) { const mimes = this.mimeGroups[group] ? this.mimeGroups[group] : [mime] @@ -1215,8 +1217,16 @@ export default { cursor: pointer; } + .viewer__content--component { + width: 100%; + align-self: stretch; + display: flex; + align-content: center; + justify-content: center; + } + &--split { - .viewer__file--active { + .viewer__content--component { width: 50%; } } @@ -1225,7 +1235,6 @@ export default { .modal-container { // Ensure some space at the bottom top: var(--header-height); - bottom: var(--header-height); height: auto; // let the mime components manage their own background-color background-color: transparent; @@ -1236,6 +1245,7 @@ export default { &__content { // center views display: flex; + align-self: center; align-items: center; justify-content: center; width: 100%;