update frontend

This commit is contained in:
Your Name 2025-12-13 02:27:14 -05:00
parent 6b19131f95
commit 7c5fbf5077
1 changed files with 11 additions and 1 deletions

View File

@ -41,7 +41,17 @@ export function applyOcclusionForExpanded(markersRef, expandedEl) {
const expandedCard = expandedEl.querySelector(".post-card"); const expandedCard = expandedEl.querySelector(".post-card");
if (!expandedCard) return; 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 || []; const list = markersRef.current || [];
for (const item of list) { for (const item of list) {