diff --git a/src/components/lists/ShotList.vue b/src/components/lists/ShotList.vue index 40c51de77..76e58cb53 100644 --- a/src/components/lists/ShotList.vue +++ b/src/components/lists/ShotList.vue @@ -815,7 +815,7 @@ export default { ['mouseleave', this.stopBrowsing], ['touchend', this.stopBrowsing], ['touchcancel', this.stopBrowsing], - ['keyup', this.stopBrowsing], + ['keyup', this.stopBrowsing] ] } }, diff --git a/src/components/mixins/entity_list.js b/src/components/mixins/entity_list.js index a84203cc3..3cf246bd8 100644 --- a/src/components/mixins/entity_list.js +++ b/src/components/mixins/entity_list.js @@ -598,9 +598,7 @@ export const entityListMixin = { const newTop = previousTop - movementY this.initialClientY = this.getClientY(event) tableWrapper.scrollTop = newTop - }, - - + } }, watch: { diff --git a/src/components/pages/playlists/PlaylistPlayer.vue b/src/components/pages/playlists/PlaylistPlayer.vue index 24d94b550..d3d3068b5 100644 --- a/src/components/pages/playlists/PlaylistPlayer.vue +++ b/src/components/pages/playlists/PlaylistPlayer.vue @@ -265,8 +265,8 @@ :margin-bottom="0" :panzoom="false" :current-preview="{ - ...currentPreview, - position: currentPreviewIndex + 1 + ...currentPreview, + position: currentPreviewIndex + 1 }" :previews="picturePreviews" high-qualiy diff --git a/src/components/previews/MultiPictureViewer.vue b/src/components/previews/MultiPictureViewer.vue index 6f5eac0f9..206b51bdd 100644 --- a/src/components/previews/MultiPictureViewer.vue +++ b/src/components/previews/MultiPictureViewer.vue @@ -1,7 +1,7 @@ @@ -81,16 +83,14 @@ export default { emits: ['loaded', 'size-changed'], data() { - return { - } + return {} }, mounted() { this.container.style.height = this.defaultHeight + 'px' }, - beforeUnmount() { - }, + beforeUnmount() {}, computed: { container() { @@ -99,12 +99,15 @@ export default { }, methods: { - getDimensions() { if (!this.currentPreview) return { height: 0, width: 0 } - const previewPlayer = this.$refs[ - 'picture-' + this.currentPreview.id + '-' + this.currentPreview.position - ] + const previewPlayer = + this.$refs[ + 'picture-' + + this.currentPreview.id + + '-' + + this.currentPreview.position + ] if (previewPlayer && previewPlayer[0]) { return previewPlayer[0].getDimensions() } @@ -120,7 +123,10 @@ export default { this.container.style.height = this.defaultHeight + 'px' if (this.currentPreview) { const key = - 'picture-' + this.currentPreview.id + '-' + this.currentPreview.position + 'picture-' + + this.currentPreview.id + + '-' + + this.currentPreview.position const previewPlayer = this.$refs[key] if (previewPlayer && previewPlayer[0]) { previewPlayer[0].resetPicture() diff --git a/src/components/previews/PictureViewer.vue b/src/components/previews/PictureViewer.vue index be837ce3d..5df7a0ba7 100644 --- a/src/components/previews/PictureViewer.vue +++ b/src/components/previews/PictureViewer.vue @@ -203,7 +203,9 @@ export default { const dimensions = this.getNaturalDimensions() if (dimensions.width > 0) ratio = dimensions.height / dimensions.width let width = dimensions.width - if (width > this.container.offsetWidth && this.container.offsetWidth > 0 + if ( + width > this.container.offsetWidth && + this.container.offsetWidth > 0 ) { width = this.container.offsetWidth }