Fix CSS variables: use daisyUI classes (bg-base-*, text-base-content/*) which wrap OKLCH values in proper oklch() function

This commit is contained in:
2026-07-03 13:03:59 +02:00
parent 5eb4cd340c
commit 24c5849f05
4 changed files with 43 additions and 48 deletions
@@ -1,29 +1,28 @@
<div style="background:#0d0f12;border:1px solid #111316;border-radius:0.5rem;box-shadow:0 8px 24px rgba(0,0,0,0.3);margin-top:0.25rem;max-height:24rem;overflow-y:auto">
<div class="card bg-base-300 shadow-xl border border-base-300 mt-1 max-h-72 overflow-y-auto">
{#if artists.isEmpty()}
<div style="padding:1rem;text-align:center;font-size:0.875rem;color:var(--bc);opacity:0.5">No artists found</div>
<div class="p-4 text-sm text-center text-base-content/50">No artists found</div>
{#else}
{#for artist in artists}
<div style="display:flex;align-items:center;justify-content:space-between;padding:0.75rem 1rem;border-bottom:1px solid #111316;transition:background 0.1s"
onmouseover="this.style.background='#0d0f12'" 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>
<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>
{#if artist.type}
<span class="badge badge-ghost badge-xs">{artist.type}</span>
{/if}
</div>
{#if artist.disambiguation}
<div style="font-size:0.8rem;color:var(--bc);opacity:0.55;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:0.1rem">{artist.disambiguation}</div>
<div class="text-xs text-base-content/50 truncate">{artist.disambiguation}</div>
{/if}
{#if artist.area}
<div style="font-size:0.75rem;color:var(--bc);opacity:0.4;margin-top:0.1rem">{artist.area}</div>
<div class="text-xs text-base-content/40">{artist.area}</div>
{/if}
</div>
<div style="flex-shrink:0">
<div class="flex-shrink-0">
{#if artist.alreadyTracked}
<span class="badge badge-success badge-sm">✓ Added</span>
{#else}
<button class="btn btn-primary btn-sm" style="min-height:0;height:2rem;padding:0 0.75rem"
<button class="btn btn-primary btn-sm"
hx-post="/api/artists/{artist.mbid}/track"
hx-target="#search-results"
hx-swap="innerHTML"