Display artists in record set items
This commit is contained in:
@@ -2,6 +2,7 @@ defmodule MusicLibraryWeb.RecordSetLive.Index do
|
|||||||
use MusicLibraryWeb, :live_view
|
use MusicLibraryWeb, :live_view
|
||||||
|
|
||||||
import MusicLibraryWeb.Components.Pagination
|
import MusicLibraryWeb.Components.Pagination
|
||||||
|
import MusicLibraryWeb.RecordComponents, only: [artist_links: 1]
|
||||||
|
|
||||||
alias MusicLibrary.RecordSets
|
alias MusicLibrary.RecordSets
|
||||||
alias MusicLibrary.RecordSets.RecordSet
|
alias MusicLibrary.RecordSets.RecordSet
|
||||||
|
|||||||
@@ -146,9 +146,12 @@
|
|||||||
</.dropdown_button>
|
</.dropdown_button>
|
||||||
</.dropdown>
|
</.dropdown>
|
||||||
</div>
|
</div>
|
||||||
<p class="mt-1 text-sm font-medium text-zinc-900 dark:text-zinc-300">
|
<h1 class="mt-1 text-xs sm:text-sm leading-6 text-zinc-700">
|
||||||
|
<.artist_links joinphrase_class="text-xs" artists={item.record.artists} />
|
||||||
|
</h1>
|
||||||
|
<h2 class="flex font-semibold text-xs sm:text-sm leading-5 text-zinc-700 dark:text-zinc-300 text-wrap">
|
||||||
{item.record.title}
|
{item.record.title}
|
||||||
</p>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<.link
|
<.link
|
||||||
|
|||||||
Reference in New Issue
Block a user