From 8a668e6a59d8c59935978ab064fe72eb3a28ae68 Mon Sep 17 00:00:00 2001 From: Logan Date: Mon, 25 May 2026 14:09:47 -0400 Subject: [PATCH] fix: move map action buttons to top-left to avoid legend overlap Fit and traffic buttons were hidden behind the legend at bottom-right. Moved both into a column group at top-left below the zoom controls, where there is clear unobstructed space. Replaced emoji with TRF text label. --- drb-frontend/components/MapView.tsx | 50 ++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drb-frontend/components/MapView.tsx b/drb-frontend/components/MapView.tsx index 744c678..18242df 100644 --- a/drb-frontend/components/MapView.tsx +++ b/drb-frontend/components/MapView.tsx @@ -523,31 +523,31 @@ export default function MapView({ nodes, activeCalls, incidents = [], lastUpdate )} - {/* ── Traffic toggle ───────────────────────────────────────────────────── */} - {process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY && ( - - )} - - {/* ── Auto-fit button ──────────────────────────────────────────────────── */} - {mapInstance && allPositions.length > 0 && ( - - )} + {/* ── Map action buttons — top-left, below zoom controls ──────────────── */} +
+ {mapInstance && allPositions.length > 0 && ( + + )} + {process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY && ( + + )} +
{/* ── Clock — bottom-left for TOC situational awareness ───────────────── */}