diff --git a/src/lib/components/views/HomeView.svelte b/src/lib/components/views/HomeView.svelte index 55918b636..89546109e 100644 --- a/src/lib/components/views/HomeView.svelte +++ b/src/lib/components/views/HomeView.svelte @@ -742,9 +742,11 @@ } loadingQobuzPlaylists = false; - // Extract playlist tags - if (c.playlists_tags?.data?.items) { - playlistTags = c.playlists_tags.data.items; + // Fetch localized playlist tags from dedicated endpoint + if (playlistTags.length === 0) { + invoke('get_playlist_tags') + .then(tags => { playlistTags = tags; }) + .catch(err => console.error('Failed to fetch playlist tags:', err)); } // Extract essential discography (limited) @@ -1153,19 +1155,21 @@ {:else if qobuzPlaylists.length > 0} {#snippet header()} -
-

{$t('home.qobuzPlaylists')}

- {#if onNavigateQobuzPlaylists} - +
+
+

{$t('home.qobuzPlaylists')}

+ {#if onNavigateQobuzPlaylists} + + {/if} +
+ {#if playlistTags.length > 0} + {/if}
- {#if playlistTags.length > 0} - - {/if} {/snippet} {#snippet children()} {#if loadingQobuzPlaylists} @@ -1785,6 +1789,12 @@ gap: 2px; } + .section-header-with-tags { + display: flex; + flex-direction: column; + gap: 8px; + } + .see-all-link { display: inline-flex; align-items: center;