@@ -244,9 +243,66 @@ export default function TransitJourneyModal({ reservation, onClose, onSave, onDe
{(transit.legs as TransitLegMeta[]).map((leg, i) => {
if (leg.mode === 'WALK') return
const mins = leg.duration ? Math.round(leg.duration / 60) : null
+ if (isMobile) {
+ // The wide from → to line plus the chip row doesn't fit a
+ // phone: each leg becomes a depart / ride / arrive rail in
+ // the line's color, meta as one quiet text line.
+ const color = leg.line_color || 'var(--text-muted)'
+ const metaLine = [
+ mins ? t('transit.min', { count: mins }) : null,
+ leg.stops ? t('transit.stops', { count: leg.stops }) : null,
+ leg.agency || null,
+ ].filter(Boolean).join(' · ')
+ const stopName = (stop: TransitLegMeta['from']) => (
+