UI improvements

This commit is contained in:
ari melody 2024-08-31 19:29:57 +01:00
parent dc0837bfee
commit 1998a36d6d
Signed by: ari
GPG key ID: CF99829C92678188
13 changed files with 148 additions and 241 deletions

View file

@ -80,19 +80,17 @@
</ul>
{{end}}
{{if .IsSingle}}
{{if .Description}}
<p id="description">{{.Description}}</p>
{{else if .IsSingle}}
{{$Track := index .Tracks 0}}
{{if $Track.Description}}
<p id="description">{{$Track.Description}}</p>
{{end}}
{{else}}
{{if .Description}}<p id="description">{{.Description}}
</p>
{{end}}
{{end}}
<button id="share">share</button>
@ -102,7 +100,7 @@
{{if .Credits}}
<div id="credits">
<h2>credits:</h2>
<h2>CREDITS</h2>
<ul>
{{range .Credits}}
{{$Artist := .Artist}}
@ -132,7 +130,7 @@
{{else if .Tracks}}
<div id="tracks">
<h2>tracks:</h2>
<h2>TRACKS</h2>
{{range $i, $track := .Tracks}}
<details>
<summary class="album-track-title">{{$track.Number}}. {{$track.Title}}</summary>