Skip to content

Commit

Permalink
feat(StopName): Right Align Stop Features (#1779)
Browse files Browse the repository at this point in the history
* feat(StopName): Right Align Stop Features

* Fixed Wrapping

* Moved to helper class

* Updated the snapshot

* Fixed snapshot

* Reverted snapshot

* Reverted snapshot again
  • Loading branch information
kotva006 authored Oct 26, 2023
1 parent c87f3a6 commit 9f1485c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/site/assets/css/_flex.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
justify-content: center;
}

.justify-content-end {
justify-content: end;
}

.align-items-center {
align-items: center;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ const StopPageHeaderRedesign = ({
<h1 className="stop-page__header--fontsize mt-8">{stop.name}</h1>
</div>
<div>
<div className="mt-8">
<div className="mt-8 d-flex justify-content-end">
<StopFeatures stop={stop} routes={routes} />
</div>
<div className="mt-n8 pb-8 fs-14" style={{ float: "right" }}>
<div
className="mt-n8 pb-8 fs-14 u-nowrap"
style={{ float: "right" }}
>
{!isStopAStation(stop) && `Stop ${stop.id}`}
</div>
</div>
Expand Down

0 comments on commit 9f1485c

Please sign in to comment.