Skip to content

Commit

Permalink
Make itinerary list more compact
Browse files Browse the repository at this point in the history
  • Loading branch information
a-limyr committed Aug 19, 2024
1 parent c3d1843 commit ff838eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions client/src/components/ItineraryList/ItineraryLegDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ export function ItineraryLegDetails({ leg, isLast }: { leg: Leg; isLast: boolean
<div className="times">
{formatDistance(leg.distance)}, {formatDuration(leg.duration)}
</div>
<div>

<InterchangeInfo leg={leg} />
<LegTime
aimedTime={leg.aimedStartTime}
expectedTime={leg.expectedStartTime}
hasRealtime={leg.realtime}
/> - <LegTime aimedTime={leg.aimedEndTime} expectedTime={leg.expectedEndTime} hasRealtime={leg.realtime} />
</div>

<div className="mode">
<b>{leg.mode}</b>{' '}
{leg.line && (
Expand All @@ -28,10 +28,11 @@ export function ItineraryLegDetails({ leg, isLast }: { leg: Leg; isLast: boolean
, {leg.authority?.name}
</>
)}{' '}
<div></div>

{leg.mode !== Mode.Foot && (
<>
<u title={leg.fromPlace.quay?.id}>{leg.fromPlace.name}</u>{' '}
<br/>
<u title={leg.fromPlace.quay?.id}>{leg.fromPlace.name}</u>{' '}
</>
)}{' '}
{!isLast && <u title={leg.toPlace.quay?.id}>{leg.toPlace.name}</u>}
Expand Down
2 changes: 1 addition & 1 deletion client/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
}

.itinerary-leg-details .mode {
margin-top: 10px;
margin-top: 2px;
}

.itinerary-header-itinerary-number {
Expand Down

0 comments on commit ff838eb

Please sign in to comment.