From 62ff09b6a08b74e66580e704c26c94f5844f4dab Mon Sep 17 00:00:00 2001 From: Hanzo_dev <2002samudiojohan@gmail.com> Date: Sat, 28 Feb 2026 00:33:57 -0500 Subject: [PATCH] feat: align and enlarge top stop banner and fix X functionality --- frontend/src/views/MapView.vue | 49 ++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/frontend/src/views/MapView.vue b/frontend/src/views/MapView.vue index 898f126..6c34284 100644 --- a/frontend/src/views/MapView.vue +++ b/frontend/src/views/MapView.vue @@ -116,6 +116,7 @@ async function clearAllMapData() { destinationQuery.value = ""; stopSearchQuery.value = ""; showETACard.value = false; + paradaCercana.value = null; // Borrar banner superior // 2. Invalidar hilos en curso mappingSequenceId.value++; @@ -767,25 +768,8 @@ async function calculateWalkingPath(origin: { lat: number, lng: number }, target - -
-
- directions_bus - - {{ paradaCercana?.name }} - - - {{ (distanciaMetros && distanciaMetros < 1000) ? Math.round(distanciaMetros) + 'm' : (distanciaMetros ? (distanciaMetros / 1000).toFixed(1) + 'km' : '') }} - - -
-
+ +
@@ -854,7 +838,24 @@ async function calculateWalkingPath(origin: { lat: number, lng: number }, target @click="openUberSearch" > directions_bus - Ver Rutas +
+ + +
+ directions_bus +
+ Parada cercana + {{ paradaCercana?.name }} +
+
+ {{ (distanciaMetros && distanciaMetros < 1000) ? Math.round(distanciaMetros) + 'm' : (distanciaMetros ? (distanciaMetros / 1000).toFixed(1) + 'km' : '') }} +
+
@@ -1480,6 +1481,14 @@ async function calculateWalkingPath(origin: { lat: number, lng: number }, target letter-spacing: -0.01em; } +.best-stop-banner { + flex: 1; /* Ocupa el espacio restante al lado de la búsqueda circular */ + background: var(--header-bg); + border: 1px solid var(--border-color); + box-shadow: 0 8px 32px rgba(0,0,0,0.3); + max-width: none; +} + .uber-search-panel { position: fixed; top: 70px; /* Debajo del header superior */