From b0e4ec650aa6a2e65c9580cb929299d61f304076 Mon Sep 17 00:00:00 2001 From: XShine555 Date: Tue, 14 Jul 2026 19:24:41 +0200 Subject: [PATCH] feat(frontend): hide playlists if the user doesn't have any --- frontend/src/routes/+page.svelte | 59 ++++++++++++++------------------ 1 file changed, 25 insertions(+), 34 deletions(-) diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index e203d18..e912fd3 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -113,7 +113,31 @@ {/if} -
+{#if playlists.length > 0} +
+

Mis listas

+
+ {#each playlists as playlist, i (playlist.id)} + + +
+ {playlist.name} +
+
+ {/each} +
+
+{/if} + +

Novedades

{#if latest.length > 0}
@@ -162,36 +186,3 @@
{/if}
- -
-

Mis listas

- {#if playlists.length > 0} -
- {#each playlists as playlist, i (playlist.id)} - - -
- {playlist.name} -
-
- {/each} -
- {:else} -
-

Todavía no tienes listas

-

- Cuando crees listas, tus últimas aparecerán aquí. -

-
- {/if} -