Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TransitLeg): collapse for any non-zero number of intermediate stops #2296

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading