From 6aa8c531fa246d77e4eb2ea835b3e791564316a9 Mon Sep 17 00:00:00 2001 From: Laptop Date: Mon, 7 Oct 2024 21:25:42 +0300 Subject: [PATCH] some frontend changes --- assets/global.css | 1 + templates/playlist.templ | 4 ++-- templates/track.templ | 4 ++-- templates/user.templ | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/assets/global.css b/assets/global.css index 2c5eb6f..bc6e902 100644 --- a/assets/global.css +++ b/assets/global.css @@ -33,6 +33,7 @@ h4, h5, h6 { font-family: "fixed", monospace, system-ui; + font-weight: normal; } /* header { diff --git a/templates/playlist.templ b/templates/playlist.templ index a10a106..ad2057c 100644 --- a/templates/playlist.templ +++ b/templates/playlist.templ @@ -17,7 +17,7 @@ templ PlaylistHeader(p sc.Playlist) { templ Playlist(p sc.Playlist) { if p.Artwork != "" { - + }

{ p.Title }

@@ -43,7 +43,7 @@ templ Playlist(p sc.Playlist) { if track.Title != "" { if track.Artwork != "" { - + } else { } diff --git a/templates/track.templ b/templates/track.templ index 8a00bac..5c504d3 100644 --- a/templates/track.templ +++ b/templates/track.templ @@ -46,7 +46,7 @@ templ TrackPlayer() { templ Track(t sc.Track, stream string) { if t.Artwork != "" { - + }

{ t.Title }

@@ -100,7 +100,7 @@ templ TrackEmbed(t sc.Track, stream string) { if t.Artwork != "" { - + }

{ t.Title }

diff --git a/templates/user.templ b/templates/user.templ index 7257d18..dc46429 100644 --- a/templates/user.templ +++ b/templates/user.templ @@ -18,7 +18,7 @@ templ UserHeader(u sc.User) { templ UserBase(u sc.User) {
if u.Avatar != "" { - + }

{ u.Username }

if u.FullName != "" { @@ -151,7 +151,7 @@ templ SearchUsers(p *sc.Paginated[*sc.User]) { for _, user := range p.Collection {
if user.Avatar != "" { - + } else { }