fix: top releases back to vertical card layout with 80px max art size
Restored the 2-column grid with square art on top, title+year below (centered). Art is capped at 80px×80px so two rows of cards fit within ~220px — close to the 5-track list height. Text uses xs font size to keep cards compact.
This commit is contained in:
@@ -343,18 +343,18 @@ export class ExploreArtistDetails extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-releases-grid {
|
.top-releases-grid {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: column;
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: 6px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-release-card {
|
.top-release-card {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.15s ease;
|
transition: background 0.15s ease;
|
||||||
padding: 6px 8px;
|
padding: 4px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
}
|
}
|
||||||
@@ -367,15 +367,16 @@ export class ExploreArtistDetails extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-release-card:active {
|
.top-release-card:active {
|
||||||
transform: scale(0.98);
|
transform: scale(0.97);
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-release-art {
|
.top-release-art {
|
||||||
width: 40px;
|
width: 100%;
|
||||||
height: 40px;
|
aspect-ratio: 1;
|
||||||
|
max-height: 80px;
|
||||||
|
max-width: 80px;
|
||||||
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%,
|
||||||
@@ -407,15 +408,13 @@ export class ExploreArtistDetails extends LitElement {
|
|||||||
|
|
||||||
.top-release-text {
|
.top-release-text {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
display: flex;
|
text-align: center;
|
||||||
flex-direction: column;
|
|
||||||
gap: 1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-release-title {
|
.top-release-title {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: var(--yj-text-primary, #fff);
|
color: var(--yj-text-primary, #fff);
|
||||||
font-size: var(--yj-text-sm);
|
font-size: var(--yj-text-xs);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -424,6 +423,7 @@ 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);
|
||||||
|
|||||||
Reference in New Issue
Block a user