diff --git a/webui/static/discover.js b/webui/static/discover.js index 92752f4c..6792ad34 100644 --- a/webui/static/discover.js +++ b/webui/static/discover.js @@ -1942,15 +1942,14 @@ let genreTracks = []; function _renderGenreCard(genre) { const icon = getGenreIcon(genre.name); const displayName = capitalizeGenre(genre.name); + // Genres have no cover art — a gradient .ya-card with the emoji, so they match the grid. #discover redesign return ` -
-
-
${icon}
-
-
-

${displayName}

-

${genre.track_count} tracks

-

Curated

+
+
${icon}
+
+
+
${displayName}
+
${genre.track_count} tracks
`; @@ -8114,19 +8113,26 @@ function _renderByltSection(section, idx) {
- + `; } function _renderByltTrackCard(t) { + const img = t.image_url + ? `` + : ''; return ` -
-
- ${t.image_url ? `` : '
🎵
'} +
+
+ ${img} +
+
+
+
+
${_esc(t.name)}
+
${_esc(t.artist)}
-
${_esc(t.name)}
-
${_esc(t.artist)}
`; } @@ -8169,6 +8175,7 @@ async function loadBecauseYouListenTo() { const carousel = document.getElementById(`bylt-carousel-${idx}`); if (!carousel) return; carousel.innerHTML = section.tracks.map(t => _renderByltTrackCard(t)).join(''); + _clampGrid(carousel); }); }, }); diff --git a/webui/static/style.css b/webui/static/style.css index 3738002d..0eb76338 100644 --- a/webui/static/style.css +++ b/webui/static/style.css @@ -35107,6 +35107,13 @@ div.artist-hero-badge { .discover-grid .ya-card { width: 100%; } /* Albums are square, so don't crop the cover with the artist card's 0.85 portrait ratio. */ .discover-grid .discover-album-card.ya-card { aspect-ratio: 1; } +/* Genre cards: no cover art — square gradient tile with the genre emoji centered. */ +.discover-grid .discover-genre-card.ya-card { aspect-ratio: 1; } +.discover-genre-card .genre-card-art { + display: flex; align-items: center; justify-content: center; + background: linear-gradient(135deg, rgba(var(--accent-rgb),0.38), rgba(var(--accent-rgb),0.07)); +} +.discover-genre-card .genre-icon-large { font-size: 46px; line-height: 1; } /* Secondary line under the title (album → artist). */ .ya-card-sub { font-size: 11px; font-weight: 500;