From ff838eb6ea404958a336e1beda0cd67abd195311 Mon Sep 17 00:00:00 2001 From: a-limyr Date: Mon, 19 Aug 2024 13:40:00 +0200 Subject: [PATCH] Make itinerary list more compact --- .../src/components/ItineraryList/ItineraryLegDetails.tsx | 9 +++++---- client/src/style.css | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client/src/components/ItineraryList/ItineraryLegDetails.tsx b/client/src/components/ItineraryList/ItineraryLegDetails.tsx index 56fdf430388..488ff34f197 100644 --- a/client/src/components/ItineraryList/ItineraryLegDetails.tsx +++ b/client/src/components/ItineraryList/ItineraryLegDetails.tsx @@ -10,14 +10,14 @@ export function ItineraryLegDetails({ leg, isLast }: { leg: Leg; isLast: boolean
{formatDistance(leg.distance)}, {formatDuration(leg.duration)}
-
+ - -
+
{leg.mode}{' '} {leg.line && ( @@ -28,10 +28,11 @@ export function ItineraryLegDetails({ leg, isLast }: { leg: Leg; isLast: boolean , {leg.authority?.name} )}{' '} -
+ {leg.mode !== Mode.Foot && ( <> - {leg.fromPlace.name} →{' '} +
+ {leg.fromPlace.name} →{' '} )}{' '} {!isLast && {leg.toPlace.name}} diff --git a/client/src/style.css b/client/src/style.css index 7dd2565c449..1a24ac2c072 100644 --- a/client/src/style.css +++ b/client/src/style.css @@ -86,7 +86,7 @@ } .itinerary-leg-details .mode { - margin-top: 10px; + margin-top: 2px; } .itinerary-header-itinerary-number {