From 065e645d3e711b1292dc8c4db935166dc5f50f8b Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Tue, 31 Dec 2024 17:01:13 -0500 Subject: [PATCH] fix(TransitLeg): collapse for any non-zero number of intermediate stops --- lib/dotcom_web/components/trip_planner/transit_leg.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dotcom_web/components/trip_planner/transit_leg.ex b/lib/dotcom_web/components/trip_planner/transit_leg.ex index 0be22e6f29..a0b99c3763 100644 --- a/lib/dotcom_web/components/trip_planner/transit_leg.ex +++ b/lib/dotcom_web/components/trip_planner/transit_leg.ex @@ -45,7 +45,7 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do
- <%= if Enum.count(@leg.mode.intermediate_stops) < 2 do %> + <%= if Enum.count(@leg.mode.intermediate_stops) == 0 do %>
<.leg_summary leg={@leg} alerts={@alerts.route} /> <.leg_details leg={@leg} /> @@ -54,7 +54,6 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do
<.leg_summary leg={@leg} alerts={@alerts.route} /> - <.icon name="chevron-down" class="ml-auto shrink-0 w-4 h-4 fill-brand-primary group-open/stops:rotate-180"