Skip to content

Commit

Permalink
[qa] Run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
frankrousseau committed Dec 20, 2024
1 parent a78d877 commit 39bae4f
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/components/lists/ShotList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ export default {
['mouseleave', this.stopBrowsing],
['touchend', this.stopBrowsing],
['touchcancel', this.stopBrowsing],
['keyup', this.stopBrowsing],
['keyup', this.stopBrowsing]
]
}
},
Expand Down
4 changes: 1 addition & 3 deletions src/components/mixins/entity_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,7 @@ export const entityListMixin = {
const newTop = previousTop - movementY
this.initialClientY = this.getClientY(event)
tableWrapper.scrollTop = newTop
},


}
},

watch: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/pages/playlists/PlaylistPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@
:margin-bottom="0"
:panzoom="false"
:current-preview="{
...currentPreview,
position: currentPreviewIndex + 1
...currentPreview,
position: currentPreviewIndex + 1
}"
:previews="picturePreviews"
high-qualiy
Expand Down
26 changes: 16 additions & 10 deletions src/components/previews/MultiPictureViewer.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div ref="container" class="multi-picture-player">
<picture-viewer
:ref="'picture-'+ preview.id + '-' + preview.position"
:ref="'picture-' + preview.id + '-' + preview.position"
v-for="preview in previews"
v-show="
preview.id === currentPreview.id &&
Expand All @@ -16,6 +16,8 @@
:panzoom="panzoom"
:default-height="defaultHeight"
:margin-bottom="marginBottom"
@loaded="() => $emit('loaded')"
@size-changed="() => $emit('size-changed')"
/>
</div>
</template>
Expand Down Expand Up @@ -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() {
Expand All @@ -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()
}
Expand All @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion src/components/previews/PictureViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 39bae4f

Please sign in to comment.