diff --git a/apps/site/assets/css/_stop-card.scss b/apps/site/assets/css/_stop-card.scss index 4bc13a0985..20b438859a 100644 --- a/apps/site/assets/css/_stop-card.scss +++ b/apps/site/assets/css/_stop-card.scss @@ -80,6 +80,14 @@ $radius: 4px; .back-to-routes + .stop-routes { grid-row: 2 / 3; + + // on mobile, adopt a full-screen "app" view, + // this is the scrollable section + @include media-breakpoint-down(sm) { + overflow-y: scroll; + overscroll-behavior: contain; + -webkit-overflow-scrolling: touch; + } } .stop-map { @@ -93,8 +101,10 @@ $radius: 4px; // with map above departure list @include media-breakpoint-down(sm) { bottom: 0; - display: block; + display: grid; left: 0; + gap: 0; + grid-template-rows: auto 1fr; padding-bottom: 0; padding-top: 0; position: fixed; @@ -163,8 +173,8 @@ $radius: 4px; &--realtime { @extend .stop-departures; @include media-breakpoint-down(sm) { - height: unset; - max-height: 100vh; + max-height: unset; + overflow-y: unset; } } diff --git a/apps/site/assets/ts/stop/components/DeparturesAndMap.tsx b/apps/site/assets/ts/stop/components/DeparturesAndMap.tsx index 4befa848f5..7abcd7de16 100644 --- a/apps/site/assets/ts/stop/components/DeparturesAndMap.tsx +++ b/apps/site/assets/ts/stop/components/DeparturesAndMap.tsx @@ -233,9 +233,9 @@ const DeparturesAndMap = ({ className={`stop-routes-and-map ${activeRow ? "selected-departure" : ""}`} > {activeRow && BackToRoutes} -
+
{activeRow ? ( -
+