Fix UI: replace Tailwind classes with inline styles for CDN compatibility
This commit is contained in:
@@ -1,45 +1,35 @@
|
||||
{#if entries.isEmpty()}
|
||||
<div class="card bg-base-100 shadow-xl p-10 text-center">
|
||||
<svg class="w-12 h-12 mx-auto text-base-content/20 mb-3" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<div class="bg-base-100 shadow-xl rounded-box p-10 text-center border border-base-300">
|
||||
<svg class="icon-lg" style="margin:0 auto 0.75rem;color:var(--bc);opacity:0.15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/>
|
||||
<path d="M9 18V5l12-2v13"/><path d="M9 9l12-2"/>
|
||||
</svg>
|
||||
<p class="text-lg font-medium text-base-content/60">No releases found</p>
|
||||
<p class="text-sm text-base-content/40 mt-1">Add artists to your collection to see their releases here</p>
|
||||
<p style="font-size:1.125rem;font-weight:500;color:var(--bc);opacity:0.6">No releases found</p>
|
||||
<p style="font-size:0.875rem;color:var(--bc);opacity:0.4;margin-top:0.25rem">Add artists to your collection to see their releases here</p>
|
||||
</div>
|
||||
{#else}
|
||||
<div class="overflow-x-auto rounded-box border border-base-300">
|
||||
<table class="table table-pin-rows">
|
||||
<thead>
|
||||
<tr class="bg-base-200/80">
|
||||
<th class="w-20">Cover</th>
|
||||
<tr style="background:color-mix(in srgb, var(--b2) 80%, transparent)">
|
||||
<th style="width:5rem">Cover</th>
|
||||
<th>Artist</th>
|
||||
<th>Release</th>
|
||||
<th>Type</th>
|
||||
<th class="w-28">Date</th>
|
||||
<th style="width:7rem">Date</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{#for entry in entries}
|
||||
<tr class="hover:bg-base-200/50 transition-colors">
|
||||
<tr style="transition:background 0.15s" onmouseover="this.style.background='color-mix(in srgb, var(--b2) 50%, transparent)'" onmouseout="this.style.background=''">
|
||||
<td>
|
||||
<a href="https://musicbrainz.org/release-group/{entry.mbid}"
|
||||
target="_blank" rel="noopener noreferrer">
|
||||
<img src="https://coverartarchive.org/release-group/{entry.mbid}/front-250"
|
||||
alt="Cover"
|
||||
width="64" height="64"
|
||||
style="width:64px;height:64px;object-fit:cover;border-radius:8px"
|
||||
loading="lazy"
|
||||
onerror="this.style.display='none'">
|
||||
<a href="https://musicbrainz.org/release-group/{entry.mbid}" target="_blank" rel="noopener noreferrer">
|
||||
<img src="https://coverartarchive.org/release-group/{entry.mbid}/front-250" alt="Cover" class="cover-img" loading="lazy" onerror="this.style.display='none'">
|
||||
</a>
|
||||
</td>
|
||||
<td><span style="font-weight:500">{entry.artistName}</span></td>
|
||||
<td>
|
||||
<span class="font-medium">{entry.artistName}</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://musicbrainz.org/release-group/{entry.mbid}"
|
||||
target="_blank" rel="noopener noreferrer"
|
||||
class="link link-hover font-medium">
|
||||
<a href="https://musicbrainz.org/release-group/{entry.mbid}" target="_blank" rel="noopener noreferrer" class="link link-hover" style="font-weight:500">
|
||||
{entry.title}
|
||||
</a>
|
||||
</td>
|
||||
@@ -54,7 +44,7 @@
|
||||
<span class="badge badge-ghost badge-sm">{entry.primaryType}</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td class="text-sm text-base-content/50">{entry.firstReleaseDate}</td>
|
||||
<td style="font-size:0.875rem;color:var(--bc);opacity:0.5">{entry.firstReleaseDate}</td>
|
||||
</tr>
|
||||
{/for}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user