Fixed numbers in playlist
This commit is contained in:
@@ -24,8 +24,8 @@
|
|||||||
>
|
>
|
||||||
??? - ???
|
??? - ???
|
||||||
</p>
|
</p>
|
||||||
<p v-else-if="track.Game != ''" :class="{ activeTrack: track.CurrentlyPlaying }">
|
<p v-else-if="track.Game !== ''" :class="{ activeTrack: track.CurrentlyPlaying }">
|
||||||
{{ track.SongNo }}. {{ track.Game }} -
|
{{ track.SongNo + 1 }}. {{ track.Game }} -
|
||||||
{{ displayTrack(track.Song) }}
|
{{ displayTrack(track.Song) }}
|
||||||
</p>
|
</p>
|
||||||
<span v-if="currentlyLoadingTrack === track.SongNo" class="loadingTrack">
|
<span v-if="currentlyLoadingTrack === track.SongNo" class="loadingTrack">
|
||||||
@@ -49,14 +49,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkIfHidden(track, playlistHistory) {
|
checkIfHidden(track, playlistHistory) {
|
||||||
if (track.SongNo == playlistHistory.length - 1 && this.currentTrackHidden) {
|
return track.SongNo === playlistHistory.length - 1 && this.currentTrackHidden;
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
false;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
checkIfLoading() {
|
|
||||||
return true;
|
|
||||||
},
|
},
|
||||||
displayTrack(trackName) {
|
displayTrack(trackName) {
|
||||||
/* Todo: Is this if-check necessary? */
|
/* Todo: Is this if-check necessary? */
|
||||||
@@ -93,20 +86,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.playlistHistory-enter-from {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
.playlistHistory-enter-to {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
.playlistHistory-enter-active {
|
|
||||||
transition: all 0.5s ease-out;
|
|
||||||
}
|
|
||||||
.playlistHistory-move {
|
|
||||||
transition: 0.25s;
|
|
||||||
transition-property: transform, opacity;
|
|
||||||
}
|
|
||||||
/* End of Animation block */
|
|
||||||
|
|
||||||
/* Scroll */
|
/* Scroll */
|
||||||
|
|
||||||
@@ -171,9 +150,6 @@ export default {
|
|||||||
.playlistHistory .activeTrack {
|
.playlistHistory .activeTrack {
|
||||||
color: yellow;
|
color: yellow;
|
||||||
}
|
}
|
||||||
.tracklistEmptyDiv {
|
|
||||||
cursor: default;
|
|
||||||
}
|
|
||||||
.loadingTrack {
|
.loadingTrack {
|
||||||
color: #ff9c00;
|
color: #ff9c00;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
@@ -185,8 +161,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.playlistHistoryDiv {
|
.playlistHistoryDiv {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0 0 0.3vw;
|
||||||
margin-bottom: 0.3vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.playlistHistoryTitle {
|
.playlistHistoryTitle {
|
||||||
|
|||||||
Reference in New Issue
Block a user