feat(discovery-v2): tooltip with full album title on AlbumCardLite

The compact 220x220 cards in Discovery V2 truncate long album titles in
the metadata row. With the marquee scroll removed there was no way to
read the full title without opening the album detail.

Pipe the title and artist through a native `title` attribute on the
text-stack wrapper; the global SystemTooltip already mounted in the
layout intercepts that and renders the custom tooltip with adaptive
positioning. Shows the full "Title — Artist" string regardless of
truncation, no extra component, no per-card hover state.

cc
This commit is contained in:
vicrodh committed 2026-05-15 00:35:45 -06:00
1 parent 3903086f36
commit 29e70de58f
1 file changed
+1 -1
+1 -1
View File
@@ -155,7 +155,7 @@
</div>
</div>
<div class="meta-row">
<div class="text-stack">
<div class="text-stack" title={`${title} — ${artist}`}>
<div class="title">{title}</div>
{#if onArtistClick}
<button class="artist-link" type="button" onclick={handleArtist}>{artist}</button>