diff --git a/index.html b/index.html index 9a8c9aa..2664a2e 100644 --- a/index.html +++ b/index.html @@ -2477,8 +2477,31 @@ id="playlist-section-recommended" style="display: none; margin-top: 3rem" > -

Recommended Songs

-

Suggested Songs From Your Playlist

+
+
+

Recommended Songs

+

Suggested Songs From Your Playlist

+
+ +
diff --git a/js/ui.js b/js/ui.js index c159202..6160b1d 100644 --- a/js/ui.js +++ b/js/ui.js @@ -492,7 +492,7 @@ export class UIRenderer { }); } - createUserPlaylistCardHTML(playlist) { + createUserPlaylistCardHTML(playlist, customSubtitle = null) { let imageHTML = ''; if (playlist.cover) { imageHTML = `${playlist.name}`; @@ -529,6 +529,8 @@ export class UIRenderer { } const isCompact = cardSettings.isCompactAlbum(); + const subtitle = + customSubtitle || `${playlist.tracks ? playlist.tracks.length : playlist.numberOfTracks || 0} tracks`; return this.createBaseCardHTML({ type: 'user-playlist', // Note: data-type logic in base might need adjustment if it uses this for buttons. @@ -536,7 +538,7 @@ export class UIRenderer { id: playlist.id, href: `/userplaylist/${playlist.id}`, title: escapeHtml(playlist.name), - subtitle: `${playlist.tracks ? playlist.tracks.length : playlist.numberOfTracks || 0} tracks`, + subtitle, imageHTML: imageHTML, actionButtonsHTML: `