From 36c44a19ab5e26258950e9ba6ae76feeb7c33b20 Mon Sep 17 00:00:00 2001 From: InstaZDLL Date: Fri, 15 May 2026 21:46:01 +0200 Subject: [PATCH] fix(ui): cap grid item width on wide screens (auto-fill instead of fixed cols) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The recently-played / recently-added / library / artist grids capped at lg:grid-cols-5 or lg:grid-cols-6 and then let each cell stretch to fill the remaining width. On a 2000px+ viewport that pushed cover art to ~330px square — way larger than any Spotify / Apple Music reference. Swap to grid-cols-[repeat(auto-fill,minmax(N,1fr))] so items stay 160-220px wide and the column count grows with viewport. - HomeView Recently played + Recently added: minmax(160px, 1fr) - LibraryView albums + artists + genres: minmax(180px, 1fr) - ArtistDetailView discography + similar artists: minmax(180px / 160px, 1fr) --- src/components/views/ArtistDetailView.tsx | 4 ++-- src/components/views/HomeView.tsx | 4 ++-- src/components/views/LibraryView.tsx | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/views/ArtistDetailView.tsx b/src/components/views/ArtistDetailView.tsx index 25b9018..43463fe 100644 --- a/src/components/views/ArtistDetailView.tsx +++ b/src/components/views/ArtistDetailView.tsx @@ -339,7 +339,7 @@ export function ArtistDetailView({

{t("artistDetail.similar.title")}

-
+
{similar.map((s) => { const inLibrary = s.library_artist_id != null; const imgSrc = resolveRemoteImage(s.picture_path, s.picture_url); @@ -399,7 +399,7 @@ export function ArtistDetailView({

{t("artistDetail.discography")}

-
+
{artist.albums.map((album) => (
) : ( -
+
{recentPlays.map((play, idx) => { const isCurrent = play.track_id === currentTrack?.id; return ( @@ -583,7 +583,7 @@ export function HomeView({ {t("home.seeAll")}
-
+
{recentAlbums.map((album) => (