From eddacdd781c0113390540147a79f71d688608593 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Sat, 7 Dec 2024 21:15:05 +0800 Subject: [PATCH] fix: tooltip position --- app/(main)/ClientComponents/MapTooltip.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(main)/ClientComponents/MapTooltip.tsx b/app/(main)/ClientComponents/MapTooltip.tsx index 70eace3..b77abe6 100644 --- a/app/(main)/ClientComponents/MapTooltip.tsx +++ b/app/(main)/ClientComponents/MapTooltip.tsx @@ -23,7 +23,7 @@ const MapTooltip = memo(function MapTooltip() { style={{ left: tooltipData.centroid[0], top: tooltipData.centroid[1], - transform: "translate(-50%, -50%)", + transform: "translate(10%, -50%)", }} onMouseEnter={(e) => { e.stopPropagation();