collapse description for playlists and users; less confusing wording on user metadata

This commit is contained in:
Laptop
2024-10-07 18:12:28 +03:00
parent acc2089a31
commit 8eaafe6281
2 changed files with 14 additions and 4 deletions

View File

@@ -29,8 +29,13 @@ templ Playlist(p sc.Playlist) {
}
</div>
</a>
<p style="white-space: pre-wrap">{ p.Description }</p>
<span>{ strconv.FormatInt(p.TrackCount, 10) } tracks</span>
if p.Description != "" {
<details>
<summary>Toggle description</summary>
<p style="white-space: pre-wrap">{ p.Description }</p>
</details>
}
<p>{ strconv.FormatInt(p.TrackCount, 10) } tracks</p>
<br/>
<br/>
<div>