handle discs in album page

This commit is contained in:
geoffrey45
2022-08-02 22:47:19 +03:00
parent 11d33e9617
commit 3dcb8ed2ef
8 changed files with 60 additions and 12 deletions
+15
View File
@@ -1,6 +1,9 @@
<template>
<div class="folder">
<div class="table rounded" v-if="tracks.length">
<div class="header" v-if="disc">
<div class="disc-number">Disc {{ disc }}</div>
</div>
<div class="songlist">
<SongItem
v-for="track in getTracks()"
@@ -40,6 +43,7 @@ const props = defineProps<{
pname?: string;
playlistid?: string;
on_album_page?: boolean;
disc?: string | number;
}>();
const route = useRoute();
@@ -135,6 +139,17 @@ function getTracks() {
background-color: $gray5;
padding: $small 0;
.header {
margin: $small;
.disc-number {
font-size: small;
font-weight: bold;
margin: $small 1.5rem;
color: $gray1;
}
}
.current {
a {
color: inherit;