From 0add08015b348de5a069168b57e0be6f5778b97b Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 12:24:44 +0100 Subject: Show all stop lines with horizontal scroll for 6+ lines (#79) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> Co-authored-by: Ariel Costas Guerrero --- src/frontend/app/components/StopSheet.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/frontend/app/components/StopSheet.tsx') diff --git a/src/frontend/app/components/StopSheet.tsx b/src/frontend/app/components/StopSheet.tsx index 422558b..0c19cb6 100644 --- a/src/frontend/app/components/StopSheet.tsx +++ b/src/frontend/app/components/StopSheet.tsx @@ -129,8 +129,8 @@ export const StopSheet: React.FC = ({ data?.sort((a, b) => a.minutes - b.minutes).slice(0, 4) || []; return ( - - + +
@@ -139,7 +139,9 @@ export const StopSheet: React.FC = ({ ({stop.stopId})
-
+
= 6 ? "scrollable" : ""}`} + > {stop.lines.map((line) => (
@@ -191,7 +193,7 @@ export const StopSheet: React.FC = ({ {formatTime(estimate.minutes)}
- {REGIONS[region].showMeters && ( + {REGIONS[region].showMeters && estimate.meters >= 0 && (
{formatDistance(estimate.meters)}
@@ -245,7 +247,7 @@ export const StopSheet: React.FC = ({
- + ); }; -- cgit v1.3