fix(ui): sharpen fullmode artwork and link local artists
This commit is contained in:
1 parent
b57889a910
commit
60e9a716f7
2 files changed
+30
-4
No files matched your search
@@ -471,7 +471,7 @@
|
||||
title: track.title,
|
||||
artist: track.performer?.name,
|
||||
album: track.album?.title,
|
||||
albumArt: track.album?.image?.thumbnail || track.album?.image?.small,
|
||||
albumArt: track.album?.image?.large || track.album?.image?.thumbnail || track.album?.image?.small,
|
||||
albumId: track.album?.id,
|
||||
artistId: track.performer?.id,
|
||||
duration: formatDuration(track.duration),
|
||||
@@ -498,7 +498,7 @@
|
||||
artist: t.performer?.name || 'Unknown Artist',
|
||||
album: t.album?.title || 'Favorites',
|
||||
duration_secs: t.duration,
|
||||
artwork_url: t.album?.image?.thumbnail || t.album?.image?.small || '',
|
||||
artwork_url: t.album?.image?.large || t.album?.image?.thumbnail || t.album?.image?.small || '',
|
||||
hires: t.hires ?? false,
|
||||
bit_depth: t.maximum_bit_depth ?? null,
|
||||
sample_rate: t.maximum_sampling_rate ?? null,
|
||||
|
||||
@@ -827,7 +827,13 @@
|
||||
</div>
|
||||
<div class="album-info">
|
||||
<h1>{selectedAlbum.title}</h1>
|
||||
<p class="artist">{selectedAlbum.artist}</p>
|
||||
{#if onQobuzArtistClick}
|
||||
<button class="artist artist-link" type="button" onclick={() => handleLocalArtistClick(selectedAlbum?.artist)}>
|
||||
{selectedAlbum.artist}
|
||||
</button>
|
||||
{:else}
|
||||
<p class="artist">{selectedAlbum.artist}</p>
|
||||
{/if}
|
||||
<p class="meta">
|
||||
{#if selectedAlbum.year}{selectedAlbum.year} • {/if}
|
||||
{selectedAlbum.track_count} tracks •
|
||||
@@ -1223,7 +1229,13 @@
|
||||
{:else}
|
||||
<div class="artist-grid">
|
||||
{#each filteredArtists as artist (artist.name)}
|
||||
<div class="artist-card">
|
||||
<div
|
||||
class="artist-card"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
onclick={() => handleLocalArtistClick(artist.name)}
|
||||
onkeydown={(event) => event.key === 'Enter' && handleLocalArtistClick(artist.name)}
|
||||
>
|
||||
<div class="artist-icon">
|
||||
<Mic2 size={32} />
|
||||
</div>
|
||||
@@ -2263,6 +2275,20 @@
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.album-info .artist-link {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.album-info .artist-link:hover {
|
||||
color: var(--text-primary);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.album-info .meta {
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
|
||||
Reference in new issue
Block a user