Skip to content

Commit

Permalink
Add tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Dec 16, 2024
1 parent d305306 commit 8d321e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions client/src/components/ItineraryList/ItineraryDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ export function ItineraryDetails({ tripPattern }: { tripPattern: TripPattern })
<ItineraryLegDetails key={leg.id ? leg.id : `noid_${i}`} leg={leg} isLast={i === tripPattern.legs.length - 1} />
))}

<div className="generalized-cost">
Generalized cost: ${tripPattern.generalizedCost}
</div>
<div className="generalized-cost">Generalized cost: ${tripPattern.generalizedCost}</div>
</div>
);
}
3 changes: 2 additions & 1 deletion client/src/components/ItineraryList/ItineraryLegDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export function ItineraryLegDetails({ leg, isLast }: { leg: Leg; isLast: boolean
return (
<div className="itinerary-leg-details">
<div className="times">
{formatDistance(leg.distance)}, {formatDuration(leg.duration)}, ${leg.generalizedCost}
{formatDistance(leg.distance)}, {formatDuration(leg.duration)},{' '}
<span title={'Generalized cost: $' + leg.generalizedCost}>${leg.generalizedCost}</span>
</div>
<InterchangeInfo leg={leg} />
<LegTime
Expand Down

0 comments on commit 8d321e7

Please sign in to comment.