Skip to content

Commit

Permalink
add css to align visuals
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed May 31, 2024
1 parent 5d7b086 commit 9890c4b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
23 changes: 21 additions & 2 deletions assets/css/_stop-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ $radius: 4px;
// on mobile, adopt a full-screen "app" view,
// this is the scrollable section
@include media-breakpoint-down(sm) {
-webkit-overflow-scrolling: touch;
overflow-y: scroll;
overscroll-behavior: contain;
-webkit-overflow-scrolling: touch;
}
}

Expand All @@ -102,9 +102,9 @@ $radius: 4px;
@include media-breakpoint-down(sm) {
bottom: 0;
display: grid;
left: 0;
gap: 0;
grid-template-rows: auto 1fr;
left: 0;
padding-bottom: 0;
padding-top: 0;
position: fixed;
Expand Down Expand Up @@ -425,3 +425,22 @@ $radius: 4px;
margin: 0;
}
}

.departure-card__times {
.no-real-time-data {
@extend .font-helvetica-neue;
@extend .fs-14;
}
}

.stop-departures--realtime {
.no-real-time-data {
@extend .align-items-center;
@extend .c-alert-item--low;
@extend .d-flex;
@extend .justify-content-center;
@extend .m-8;
@extend .pb-40;
@extend .pt-40;
}
}
6 changes: 5 additions & 1 deletion assets/ts/helpers/departureInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ const departuresListFromInfos = (
const tripId = departureInfos[0]?.trip?.id;

if (isSubway && !predictionTimeCutoff) {
return [<div key={`${routeId}-${tripId}`}>No real-time data</div>];
return [
<div className="no-real-time-data" key={`${routeId}-${tripId}`}>
No real-time data
</div>
];
}

return chain(departureInfos)
Expand Down

0 comments on commit 9890c4b

Please sign in to comment.