diff --git a/static/v3/songs.js b/static/v3/songs.js index 2dfa837..ed86acd 100644 --- a/static/v3/songs.js +++ b/static/v3/songs.js @@ -376,6 +376,17 @@ return '' + l + ''; } + // Clickable arrangement chips — one ').join(''); + } + function songCard(song) { const fav = song.favorite; const key = cardKey(song); @@ -410,8 +421,7 @@ const checkbox = state.selectMode ? '' : ''; - const arrChips = (song.arrangements || []).slice(0, 4).map((a) => - '').join(''); + const arrChips = arrChipsHtml(song); // Plugin-contributed card actions placed 'inline' (in the hover action // row) or 'overlay' (centered over the art). Menu-placed actions live in // the ⋮ menu (openCardMenu); rendering these here means plugins using @@ -720,10 +730,11 @@ '' + esc(a.name) + '' + esc(a.song_count) + '' + '
' + (a.albums || []).map((al) => '
' + esc(al.name || 'Unknown') + '
' + - (al.songs || []).map((s) => { const k = cardKey(s); const fl = fmtLabel(s); return ( + (al.songs || []).map((s) => { const k = cardKey(s); const fl = fmtLabel(s); const chips = arrChipsHtml(s); return ( '
' + '' + '' + esc(s.title) + '' + + (chips ? '' : '') + (fl ? '' + fl + '' : '') + accuracyBadge(k, 'tree') + '' +