Skip to content

Commit

Permalink
fix(TransitLeg): collapse for any non-zero number of intermediate stops
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Dec 31, 2024
1 parent c02bf0d commit 065e645
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/dotcom_web/components/trip_planner/transit_leg.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do
<div class={["w-1 flex-grow", leg_line_class(@leg.mode.route)]}></div>
</div>
<%= if Enum.count(@leg.mode.intermediate_stops) < 2 do %>
<%= if Enum.count(@leg.mode.intermediate_stops) == 0 do %>
<div class="w-full my-3">
<.leg_summary leg={@leg} alerts={@alerts.route} />
<.leg_details leg={@leg} />
Expand All @@ -54,7 +54,6 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do
<details class="w-full my-3 group/stops">
<summary class="flex items-start cursor-pointer">
<.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"
Expand Down

0 comments on commit 065e645

Please sign in to comment.