|
|
|
@@ -1,21 +1,22 @@
|
|
|
|
|
<div class="card bg-base-300 dropdown-shadow border border-base-300 mt-1" style="max-height:18rem;overflow-y:auto">
|
|
|
|
|
{#if artists.isEmpty()}
|
|
|
|
|
<div class="p-4 text-sm text-center text-base-content/50">No artists found</div>
|
|
|
|
|
<div style="padding:1rem;text-align:center;font-size:0.875rem;color:var(--fallback-bc,oklch(var(--bc)/0.5))">No artists found</div>
|
|
|
|
|
{#else}
|
|
|
|
|
{#for artist in artists}
|
|
|
|
|
<div class="flex items-center justify-between p-3 hover:bg-base-200 border-b border-base-300 last:border-b-0 transition-colors">
|
|
|
|
|
<div class="flex-1 min-w-0 mr-2">
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<span class="font-semibold text-sm">{artist.name}</span>
|
|
|
|
|
<div style="display:flex;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid var(--fallback-b3,oklch(var(--b3)/1));transition:background 0.1s"
|
|
|
|
|
onmouseover="this.style.background='var(--fallback-b2,oklch(var(--b2)/1))'" onmouseout="this.style.background=''">
|
|
|
|
|
<div style="flex:1;min-width:0;margin-right:0.5rem">
|
|
|
|
|
<div style="display:flex;align-items:center;gap:0.5rem">
|
|
|
|
|
<span style="font-weight:600;font-size:0.9rem">{artist.name}</span>
|
|
|
|
|
{#if artist.type}
|
|
|
|
|
<span class="badge badge-ghost badge-xs">{artist.type}</span>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
{#if artist.disambiguation}
|
|
|
|
|
<div class="text-xs text-base-content/50 truncate">{artist.disambiguation}</div>
|
|
|
|
|
<div style="font-size:0.75rem;color:var(--fallback-bc,oklch(var(--bc)/0.5));overflow:hidden;text-overflow:ellipsis;white-space:nowrap">{artist.disambiguation}</div>
|
|
|
|
|
{/if}
|
|
|
|
|
{#if artist.area}
|
|
|
|
|
<div class="text-xs text-base-content/40">{artist.area}</div>
|
|
|
|
|
<div style="font-size:0.75rem;color:var(--fallback-bc,oklch(var(--bc)/0.4))">{artist.area}</div>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex-shrink-0">
|
|
|
|
|