From 7e173c1b63c09faf4c2a781a5d4546809be51121 Mon Sep 17 00:00:00 2001 From: Daniel Pupius Date: Sun, 15 Mar 2026 23:43:03 +0000 Subject: [PATCH] Fix NodeLocationMap height and always show center dot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Pass fullHeight to NodeLocationMap in NodeDetail so it fills the h-[400px] wrapper rather than rendering its own h-[300px] and leaving dead space below - Always show the center dot in NodeLocationMap: the previous threshold (accuracyMeters < 100) suppressed the dot for typical Meshtastic precision values (10-13 bits → 2-10km accuracy), making the map appear empty even when a location was known Co-Authored-By: Claude Sonnet 4.6 --- web/src/components/dashboard/GoogleMap.tsx | 2 +- web/src/components/dashboard/NodeDetail.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/dashboard/GoogleMap.tsx b/web/src/components/dashboard/GoogleMap.tsx index bdea4cc..0bbe76b 100644 --- a/web/src/components/dashboard/GoogleMap.tsx +++ b/web/src/components/dashboard/GoogleMap.tsx @@ -30,7 +30,7 @@ export const NodeLocationMap: React.FC = ({ }) => { const accuracyMeters = calculateAccuracyFromPrecisionBits(precisionBits); const effectiveZoom = zoom ?? calculateZoomFromAccuracy(accuracyMeters); - const showCenterDot = precisionBits === undefined || accuracyMeters < 100; + const showCenterDot = true; const markerGeoJSON = useMemo((): FeatureCollection => ({ type: "FeatureCollection", diff --git a/web/src/components/dashboard/NodeDetail.tsx b/web/src/components/dashboard/NodeDetail.tsx index 6003cb6..5f5267b 100644 --- a/web/src/components/dashboard/NodeDetail.tsx +++ b/web/src/components/dashboard/NodeDetail.tsx @@ -589,6 +589,7 @@ export const NodeDetail: React.FC = ({ nodeId }) => { lat={latitude} lng={longitude} precisionBits={precisionBits} + fullHeight />