From 32574981f659a6c59faf968c8dbfe6eda3c632d6 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Mon, 20 Apr 2026 16:23:00 +0200 Subject: Mostrar procedencia en rutas interurbanas Closes #154 --- src/frontend/app/components/arrivals/ArrivalCard.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/frontend/app/components') diff --git a/src/frontend/app/components/arrivals/ArrivalCard.tsx b/src/frontend/app/components/arrivals/ArrivalCard.tsx index 51e0803..3aae65e 100644 --- a/src/frontend/app/components/arrivals/ArrivalCard.tsx +++ b/src/frontend/app/components/arrivals/ArrivalCard.tsx @@ -34,7 +34,7 @@ const AutoMarquee = ({ text }: { text: string }) => { if (!el) return; const checkScroll = () => { - const charWidth = 8; + const charWidth = 12; const availableWidth = el.offsetWidth; const textWidth = text.length * charWidth; setShouldScroll(textWidth > availableWidth); @@ -252,10 +252,22 @@ export const ArrivalCard: React.FC = ({ {operator && ( {operator} + {headsign.destination || headsign.origin ? ( + <> ·  + ) : ( + "" + )} + + )} + {headsign.origin && ( + + Proc: {headsign.origin}{" "} {headsign.marquee && <> · } )} - {headsign.marquee && } + {headsign.marquee && ( + + )} -- cgit v1.3