Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
QMAPS-2824 ui (#1402)
Browse files Browse the repository at this point in the history
  • Loading branch information
xem committed Sep 14, 2022
1 parent de706fa commit a7dc61f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/panel/direction/PublicTransportLine/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const PublicTransportLine: React.FunctionComponent<PublicTransportLineProps> = (
const lineColor = info?.lineColor ? Color('#' + info.lineColor) : Color('white');
return (
<>
<div className="oval" />
{mode && (
<DefaultRoadMapIcon
className="routePtLine__transport-icon"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,25 @@ const PublicTransportLineLeg = ({ leg }) => {
>
<div className="itinerary_roadmap_item_summary" onClick={() => setDetailsOpen(!detailsOpen)}>
<div>
<div className="oval" />

{from?.name && (
<Flex mt="xxxs" mb="xxs">
<Text typo="body-2" bold>
{from.name}
</Text>
</Flex>
)}

<PublicTransportLine mode={mode} info={info} showDirection />

{duration && stops.length > 0 && (
<Flex mt="xxxs">
<Text typo="caption-1" color="secondary">
{formatDuration(duration)} ({stops.length + 1} {_('stops')})
</Text>
</Flex>
)}
{from?.name && (
<Flex mt="xxxs">
<Text typo="body-2" bold>
{from.name}
</Text>
</Flex>
)}
{detailsOpen && (
<div className="itinerary_roadmap_substeps">
{stops.map((stop, index) => (
Expand Down

0 comments on commit a7dc61f

Please sign in to comment.