From 4cab44889c850bf52140ad4b8ae98284b6fee731 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Mon, 29 Jun 2026 14:21:52 -0700 Subject: [PATCH] discover: unify album sections onto the .ya-card grid + Show-all clamp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Step 2 of the makeover — the album/release sections now use the same .ya-card as Your Artists (square cover so art is not cropped, name overlaid, artist beneath) in responsive wrapping grids, replacing the old spotify-library-card / discover-card / carousels: - Recent Releases, Your Albums (owned/missing badge kept), Undiscovered Albums, New In Your Genres, From Your Labels (one shared _cacheDiscoverCard), Seasonal Albums. - _insertCacheSection gained a wrapGrid flag; Genre Explorer opts out (wrapGrid=false) so its pill layout is not squashed into the card grid (fixes the regression where it broke under the hero). - new _clampGrid caps a grid at ~12 cards with a Show all (N) / Show less toggle, so a 30-item section is not a wall; wired into the cache sections + Recent Releases + Seasonal Albums. 64 script-integrity tests green. Next: the two artist sections (Based On Your Listening / Recommended For You) need their watchlist + live-enrichment hooks moved before they can switch to .ya-card. --- webui/index.html | 6 +-- webui/static/discover.js | 113 +++++++++++++++++++++++++-------------- webui/static/style.css | 50 +++++++++++++++++ 3 files changed, 125 insertions(+), 44 deletions(-) diff --git a/webui/index.html b/webui/index.html index 71cb8c00..1d56249d 100644 --- a/webui/index.html +++ b/webui/index.html @@ -3283,7 +3283,7 @@ -
+

Loading your albums...

@@ -3298,7 +3298,7 @@

Recent Releases

New music from artists you follow

-