fix: top releases use compact horizontal cards matching track height

Switched from square album art grid (each card ~180px tall) to
compact horizontal rows (40px thumbnail left, title+year right).
Each card is ~52px tall — 2 cards at ~110px matches the 5-track
list at ~220px without wasted space. Layout is a vertical flex
column instead of a 2-column grid.
This commit is contained in:
2026-03-30 20:40:30 -04:00
parent f29c87f869
commit d324d86e17
@@ -343,18 +343,18 @@ export class ExploreArtistDetails extends LitElement {
} }
.top-releases-grid { .top-releases-grid {
display: grid; display: flex;
grid-template-columns: 1fr 1fr; flex-direction: column;
gap: 10px; gap: 6px;
} }
.top-release-card { .top-release-card {
display: flex; display: flex;
flex-direction: column; align-items: center;
gap: 4px; gap: 10px;
cursor: pointer; cursor: pointer;
transition: background 0.15s ease; transition: background 0.15s ease;
padding: 4px; padding: 6px 8px;
border-radius: 6px; border-radius: 6px;
min-width: 0; min-width: 0;
} }
@@ -367,14 +367,15 @@ export class ExploreArtistDetails extends LitElement {
} }
.top-release-card:active { .top-release-card:active {
transform: scale(0.97); transform: scale(0.98);
} }
.top-release-art { .top-release-art {
width: 100%; width: 40px;
aspect-ratio: 1; height: 40px;
border-radius: 4px; border-radius: 4px;
overflow: hidden; overflow: hidden;
flex-shrink: 0;
background: linear-gradient( background: linear-gradient(
135deg, 135deg,
var(--yj-bg-overlay, #404040) 0%, var(--yj-bg-overlay, #404040) 0%,
@@ -406,7 +407,9 @@ export class ExploreArtistDetails extends LitElement {
.top-release-text { .top-release-text {
min-width: 0; min-width: 0;
text-align: center; display: flex;
flex-direction: column;
gap: 1px;
} }
.top-release-title { .top-release-title {
@@ -421,7 +424,6 @@ export class ExploreArtistDetails extends LitElement {
.top-release-meta { .top-release-meta {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
gap: 6px; gap: 6px;
color: var(--yj-text-tertiary, #888); color: var(--yj-text-tertiary, #888);
font-size: var(--yj-text-xs); font-size: var(--yj-text-xs);