From 531c72899cf5b2cbc90a22cf22709d4b382f412b Mon Sep 17 00:00:00 2001 From: Gabe Farrell <90876006+gabehf@users.noreply.github.com> Date: Tue, 3 Feb 2026 11:23:30 -0500 Subject: [PATCH 1/2] fix: add null check for top charts bg gradient (#193) --- client/app/routes/Charts/ChartLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/routes/Charts/ChartLayout.tsx b/client/app/routes/Charts/ChartLayout.tsx index 446f7d1..90858bd 100644 --- a/client/app/routes/Charts/ChartLayout.tsx +++ b/client/app/routes/Charts/ChartLayout.tsx @@ -40,7 +40,7 @@ export default function ChartLayout({ useEffect(() => { if ((data?.items?.length ?? 0) === 0) return; - const img = (data.items[0] as any)?.item.image; + const img = (data.items[0] as any)?.item?.image; if (!img) return; average(imageUrl(img, "small"), { amount: 1 }).then((color) => { From 0ec7b458ccf29bed07e5cd53ac407c117a29f2b2 Mon Sep 17 00:00:00 2001 From: Gabe Farrell <90876006+gabehf@users.noreply.github.com> Date: Wed, 4 Feb 2026 13:41:12 -0500 Subject: [PATCH 2/2] ui: tweaks and fixes (#194) * reduce min width of top chart on mobile * adjust error page style * adjust h1 line height --- client/app/app.css | 3 +++ client/app/root.tsx | 8 ++++---- client/app/routes/Charts/AlbumChart.tsx | 4 ++-- client/app/routes/Charts/ArtistChart.tsx | 4 ++-- client/app/routes/Charts/TrackChart.tsx | 4 ++-- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/client/app/app.css b/client/app/app.css index bc60042..15cfbc0 100644 --- a/client/app/app.css +++ b/client/app/app.css @@ -58,6 +58,7 @@ --header-sm: 16px; --header-xl-weight: 600; --header-weight: 600; + --header-line-height: 3rem; } @media (min-width: 60rem) { @@ -68,6 +69,7 @@ --header-sm: 16px; --header-xl-weight: 600; --header-weight: 600; + --header-line-height: 1.3em; } } @@ -98,6 +100,7 @@ h1 { font-family: "League Spartan"; font-weight: var(--header-weight); font-size: var(--header-xl); + line-height: var(--header-line-height); } h2 { font-family: "League Spartan"; diff --git a/client/app/root.tsx b/client/app/root.tsx index 077d09e..cb0723f 100644 --- a/client/app/root.tsx +++ b/client/app/root.tsx @@ -116,12 +116,12 @@ export function ErrorBoundary() { {title} +
-
-
-
- +
+
+

{message}

{details}

diff --git a/client/app/routes/Charts/AlbumChart.tsx b/client/app/routes/Charts/AlbumChart.tsx index 7bc4eea..7a157a8 100644 --- a/client/app/routes/Charts/AlbumChart.tsx +++ b/client/app/routes/Charts/AlbumChart.tsx @@ -30,7 +30,7 @@ export default function AlbumChart() { initialData={initialData} endpoint="chart/top-albums" render={({ data, page, onNext, onPrev }) => ( -
+