From b445f131220b5267f558fb7d523d9a1eceb84ba7 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Fri, 20 Dec 2024 12:21:48 -0500 Subject: [PATCH] ui(TripPlanner): Fix alignment of route symbol icon in transit leg (#2281) --- .../components/trip_planner/transit_leg.ex | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/dotcom_web/components/trip_planner/transit_leg.ex b/lib/dotcom_web/components/trip_planner/transit_leg.ex index c9dc6f9b59..0be22e6f29 100644 --- a/lib/dotcom_web/components/trip_planner/transit_leg.ex +++ b/lib/dotcom_web/components/trip_planner/transit_leg.ex @@ -39,7 +39,7 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do alerts={@alerts.from} /> -
+
@@ -172,12 +172,14 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do |> assign(:headsign, headsign(assigns.leg.mode)) ~H""" -
- <.route_symbol - class="shrink-0" - route={@leg.mode.route} - size={route_symbol_size(@leg.mode.route)} - /> +
+
+ <.route_symbol + class="shrink-0" + route={@leg.mode.route} + size={route_symbol_size(@leg.mode.route)} + /> +
{@headsign} @@ -270,7 +272,7 @@ defmodule DotcomWeb.Components.TripPlanner.TransitLeg do :for={stop <- @leg.mode.intermediate_stops} class="inline-flex items-center gap-x-2 py-2 relative" > - <.icon name="circle" class="h-1.5 w-1.5 absolute -left-7 fill-white" /> + <.icon name="circle" class="h-1.5 w-1.5 absolute -left-[1.3125rem] fill-white" /> {stop.name}