update frontend
This commit is contained in:
parent
6b19131f95
commit
7c5fbf5077
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue