From 7c5fbf50770c43e998fbcfdf16f6d33599263dfb Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 13 Dec 2025 02:27:14 -0500 Subject: [PATCH] update frontend --- src/components/Map/markerManager.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/Map/markerManager.js b/src/components/Map/markerManager.js index 8c6b61f..d4c5d7d 100644 --- a/src/components/Map/markerManager.js +++ b/src/components/Map/markerManager.js @@ -41,7 +41,17 @@ export function applyOcclusionForExpanded(markersRef, expandedEl) { const expandedCard = expandedEl.querySelector(".post-card"); if (!expandedCard) return; - const expandedRect = expandedCard.getBoundingClientRect(); + const PAD_X = 26; // left/right + const PAD_TOP = 20; // top + const PAD_BOTTOM = 42; // bottom (pointer + nearby) + + const raw = expandedCard.getBoundingClientRect(); + const expandedRect = { + left: raw.left - PAD_X, + right: raw.right + PAD_X, + top: raw.top - PAD_TOP, + bottom: raw.bottom + PAD_BOTTOM, + }; const list = markersRef.current || []; for (const item of list) {