resolves #91
This commit is contained in:
@@ -113,6 +113,7 @@ export const SmartPopup = (
|
||||
);
|
||||
|
||||
const handleConflict = useCallback(() => {
|
||||
console.log("handleConflict in smartMarker", id, options);
|
||||
const newAnchor = calculateAnchor(id, "popup", options);
|
||||
setAnchor(newAnchor);
|
||||
}, [id, options]);
|
||||
@@ -139,10 +140,10 @@ export const SmartPopup = (
|
||||
<Popup {...props} className={cn("relative", wrapperClassName)}>
|
||||
<div
|
||||
className={cn(
|
||||
"pointer-events-auto bg-base-100 relative",
|
||||
"bg-base-100 pointer-events-auto relative",
|
||||
anchor.includes("right") && "-translate-x-full",
|
||||
anchor.includes("bottom") && "-translate-y-full",
|
||||
!showContent && "opacity-0 pointer-events-none",
|
||||
!showContent && "pointer-events-none opacity-0",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
@@ -150,7 +151,7 @@ export const SmartPopup = (
|
||||
data-id={id}
|
||||
id={`popup-domain-${id}`}
|
||||
className={cn(
|
||||
"map-collision absolute w-[200%] h-[200%] top-0 left-0 transform pointer-events-none",
|
||||
"map-collision pointer-events-none absolute left-0 top-0 h-[200%] w-[200%] transform",
|
||||
anchor.includes("left") && "-translate-x-1/2",
|
||||
anchor.includes("top") && "-translate-y-1/2",
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user