100% drop area, fix path for playlist items

This commit is contained in:
jb-alvarado 2020-08-25 19:07:38 +02:00
parent d3dc3af153
commit 8ea996cd24

View File

@ -199,7 +199,7 @@
</b-list-group-item> </b-list-group-item>
</b-list-group> </b-list-group>
<perfect-scrollbar id="scroll-container"> <perfect-scrollbar id="scroll-container">
<b-list-group> <b-list-group class="playlist-list-group">
<draggable <draggable
id="playlist-group" id="playlist-group"
v-model="playlist" v-model="playlist"
@ -422,8 +422,15 @@ export default {
this.$root.$emit('bv::show::modal', 'preview-modal') this.$root.$emit('bv::show::modal', 'preview-modal')
}, },
cloneClip ({ file, duration }) { cloneClip ({ file, duration }) {
let subPath
if (this.folderTree.tree[0].includes('/')) {
subPath = this.folderTree.tree[0].replace(/.*\//, '') + '/'
} else {
subPath = ''
}
return { return {
source: `/${this.folderTree.tree[0]}/${file}`, source: `${this.configPlayout.storage.path}/${subPath}${file}`,
in: 0, in: 0,
out: duration, out: duration,
duration duration
@ -663,6 +670,10 @@ export default {
border-color: #515763; border-color: #515763;
} }
.playlist-list-group, #playlist-group {
height: 100%;
}
.playlist-item:nth-of-type(even), .playlist-item:nth-of-type(even) div .timecode input { .playlist-item:nth-of-type(even), .playlist-item:nth-of-type(even) div .timecode input {
background-color: #3b424a; background-color: #3b424a;
} }