diff --git a/assets/css/_events.scss b/assets/css/_events.scss index 7067eadf30..82a22ee79d 100644 --- a/assets/css/_events.scss +++ b/assets/css/_events.scss @@ -181,10 +181,6 @@ $mobile-control-height: 73px; cursor: pointer; } -.hidden { - display: none !important; -} - .m-event { padding: 16px; @include media-breakpoint-down(xs) { diff --git a/lib/dotcom_web/components/live_components/trip_planner_results_section.ex b/lib/dotcom_web/components/live_components/trip_planner_results_section.ex index d264fd01c6..bdef424b90 100644 --- a/lib/dotcom_web/components/live_components/trip_planner_results_section.ex +++ b/lib/dotcom_web/components/live_components/trip_planner_results_section.ex @@ -17,26 +17,58 @@ defmodule DotcomWeb.Components.LiveComponents.TripPlannerResultsSection do @impl true def render(assigns) do ~H""" -
+
<%= inspect(@error) %>
<.async_result :let={results} assign={@results}> -
- <.itinerary_panel - results={results} - details_index={@expanded_itinerary_index} - target={@myself} - /> +
+
+ <.live_component module={MbtaMetro.Live.Map} id="trip-planner-map" - class="h-96 w-full relative overflow-none" + class={[ + "h-64 md:h-96 w-full", + "relative overflow-none row-span-2", + @expanded_itinerary_index == nil && "hidden md:block" + ]} config={@map_config} pins={[@from, @to]} /> + + <.async_result :let={results} assign={@results}> +
+ <.itinerary_panel + results={results} + details_index={@expanded_itinerary_index} + target={@myself} + /> +
+
""" end @@ -63,19 +95,6 @@ defmodule DotcomWeb.Components.LiveComponents.TripPlannerResultsSection do ~H"""
- -
<.itinerary_summary summary={@summary} />