Added gap between sliders

This commit is contained in:
lucast committed 2026-02-25 16:56:21 +01:00
1 parent dbb91a3918
commit 4754d61279
1 file changed
+22 -12
+22 -12
View File
@@ -27,16 +27,26 @@ const { data, pending, refresh } = useAsyncData("random-albums", async () => {
</script> </script>
<template> <template>
<template v-for="item in data" :key="item.genre._id"> <section class="slider">
<Slider v-if="item.albums.length" :title="item.genre.name"> <template v-for="item in data" :key="item.genre._id">
<AlbumCard <Slider v-if="item.albums.length" :title="item.genre.name">
v-for="album in item.albums" <AlbumCard
:key="album._id" v-for="album in item.albums"
:name="album.name" :key="album._id"
:file="`${BACKEND_SERVE}${album.file}`" :name="album.name"
:artists="album.artists" :file="`${BACKEND_SERVE}${album.file}`"
:_id="album._id" :artists="album.artists"
/> :_id="album._id"
</Slider> />
</template> </Slider>
</template>
</section>
</template> </template>
<style lang="scss" scoped>
.slider {
display: flex;
flex-direction: column;
gap: 1rem;
}
</style>