Skip to content

Commit

Permalink
fix: Make "Depart at" buttons wrap rather than overflow (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarson authored Dec 10, 2024
1 parent 591ea7e commit fc514d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dotcom_web/components/trip_planner/itinerary_detail.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule DotcomWeb.Components.TripPlanner.ItineraryDetail do
~H"""
<div :if={Enum.count(@itineraries) > 1}>
<p class="text-sm mb-2 mt-3">Depart at</p>
<div class="flex">
<div class="flex flex-wrap gap-2">
<.depart_at_button
:for={{itinerary, index} <- Enum.with_index(@itineraries)}
active={@selected_itinerary_detail_index == index}
Expand All @@ -66,7 +66,7 @@ defmodule DotcomWeb.Components.TripPlanner.ItineraryDetail do
<button
type="button"
class={[
"border border-brand-primary rounded px-2.5 py-1.5 mr-2 text-brand-primary text-lg",
"border border-brand-primary rounded px-2.5 py-1.5 text-brand-primary text-lg",
"hover:bg-brand-primary-lightest #{@background_class}"
]}
{@rest}
Expand Down

0 comments on commit fc514d0

Please sign in to comment.