Files
swingmusic-extended/src/views/PlaylistList.vue
T
geoffrey45 f3c4f0310a update interfaces to use the updated property names
+ misc changes related to moving to sqlite
2023-01-13 18:13:49 +03:00

34 lines
731 B
Vue

<template>
<div id="p-view" class="content-page">
<div class="grid">
<PlaylistCard
v-for="p in pStore.playlists"
:key="p.id"
:playlist="p"
/>
</div>
</div>
</template>
<script setup lang="ts">
import PlaylistCard from "@/components/PlaylistsList/PlaylistCard.vue";
import usePStore from "@/stores/pages/playlists";
const pStore = usePStore();
// TODO: When you add a song to playlist when you are in this page, increase the count on the card.
</script>
<style lang="scss">
#p-view {
padding-bottom: $content-padding-bottom;
height: 100%;
overflow: auto;
.grid {
grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr));
gap: 2.5rem 1.75rem;
}
}
</style>