From bbc3b4a32ebc611c1ad516f7cbe60738994c22a6 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Tue, 10 Feb 2026 01:52:56 -0600 Subject: [PATCH] fix: use localized playlist tags and align tag selector below section title --- src/lib/components/views/HomeView.svelte | 38 +++++++++++++++--------- 1 file changed, 24 insertions(+), 14 deletions(-) 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;