fix(front): proper loader on albums page

This commit is contained in:
ArneBo 2025-01-21 19:35:09 +01:00
parent 2c8dd38a09
commit 5b11a558c0
1 changed files with 7 additions and 6 deletions

View File

@ -189,16 +189,17 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
</option>
</select>
</Layout>
<Spacer />
<Loader v-if="isLoading"/>
<Layout grid
v-if="result && result.results.length > 0"
style="display:flex; flex-wrap:wrap; gap: 32px; margin-top:32px;"
>
<Loader v-if="isLoading"/>
<AlbumCard
v-for="album in result.results"
:key="album.id"
:album="album"
/>
<AlbumCard
v-for="album in result.results"
:key="album.id"
:album="album"
/>
</Layout>
<Layout
stack