Skip to content

Commit

Permalink
add travel time subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
skaplan-dev committed Jul 9, 2023
1 parent 6733fc3 commit d6d9065
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/dashboard/WidgetTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const WidgetTitle: React.FC<WidgetTitle> = ({
</h2>
{isMobile && <p className="text-xs italic text-stone-700">{date}</p>}
</div>
{subtitle && (
{subtitle && !isMobile && (
<h2
className={classNames('whitespace-nowrap text-sm italic leading-tight text-stone-600')}
>
Expand Down
16 changes: 14 additions & 2 deletions modules/tripexplorer/SubwayTripGraphs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ export const SubwayTripGraphs: React.FC<SubwayTripGraphsProps> = ({
{aggregate ? (
<>
<WidgetDiv>
<WidgetTitle title="Travel times" location={location} line={line} both />
<WidgetTitle
title="Travel times"
subtitle="Time between stops"
location={location}
line={line}
both
/>
<TravelTimesAggregateWrapper
query={traveltimes}
fromStation={fromStation}
Expand Down Expand Up @@ -108,7 +114,13 @@ export const SubwayTripGraphs: React.FC<SubwayTripGraphsProps> = ({
) : (
<>
<WidgetDiv>
<WidgetTitle title="Travel times" location={location} line={line} both />
<WidgetTitle
title="Travel times"
subtitle="Time between stops"
location={location}
line={line}
both
/>
<TravelTimesSingleWrapper
query={traveltimes}
toStation={toStation}
Expand Down

0 comments on commit d6d9065

Please sign in to comment.