From e2498af481742f97f441d890afb3a0ec291e9d5d Mon Sep 17 00:00:00 2001 From: Josh Wright Date: Sun, 5 Apr 2026 14:10:45 -0400 Subject: [PATCH] fix: move ride count below park name to prevent overflow on small displays Removes the space-between flex layout that pushed the count to the right edge of a fixed-width column. Now stacks under city/state so it always fits within the park name column regardless of screen size. Co-Authored-By: Claude Sonnet 4.6 --- components/WeekCalendar.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/components/WeekCalendar.tsx b/components/WeekCalendar.tsx index e78f984..7b9495b 100644 --- a/components/WeekCalendar.tsx +++ b/components/WeekCalendar.tsx @@ -224,11 +224,10 @@ function ParkRow({ -
+
{park.name} @@ -249,14 +248,14 @@ function ParkRow({
{park.location.city}, {park.location.state}
+ {rideCounts?.[park.id] !== undefined && ( +
+ {rideCounts[park.id]} {coastersOnly + ? (rideCounts[park.id] === 1 ? "coaster" : "coasters") + : (rideCounts[park.id] === 1 ? "ride" : "rides")} operating +
+ )}
- {rideCounts?.[park.id] !== undefined && ( -
- {rideCounts[park.id]} {coastersOnly - ? (rideCounts[park.id] === 1 ? "coaster" : "coasters") - : (rideCounts[park.id] === 1 ? "ride" : "rides")} operating -
- )}