From 50bd94dfc09a10932ff726adf2127b538ca64f6e Mon Sep 17 00:00:00 2001 From: Araozu Date: Tue, 8 Oct 2024 19:33:18 -0500 Subject: [PATCH] feat: improve album track list ui --- src/modules/album/album.templ | 12 ++++++++---- src/utils/utils.templ | 7 +++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/modules/album/album.templ b/src/modules/album/album.templ index e73ee06..be81cf5 100644 --- a/src/modules/album/album.templ +++ b/src/modules/album/album.templ @@ -3,6 +3,7 @@ package album import ( "acide/src/utils" "fmt" + "strconv" ) templ albumTempl(albumId string, album *utils.Album, songs []utils.Song) { @@ -15,10 +16,10 @@ templ albumTempl(albumId string, album *utils.Album, songs []utils.Song) {

{ album.Artist }

-
+
for _, song := range songs { -

+ + { strconv.Itoa(song.TrackNumber) } + { song.Title } -

+ }
diff --git a/src/utils/utils.templ b/src/utils/utils.templ index 0ac9a2e..47721d3 100644 --- a/src/utils/utils.templ +++ b/src/utils/utils.templ @@ -39,11 +39,14 @@ templ MusicPlayer() {

-

-

-
+
@playIcon(26) @pauseIcon(26)
-