From 501d5620254bc426800624e2c25140ac934164bf Mon Sep 17 00:00:00 2001 From: taDuc Date: Sun, 7 Jun 2026 10:50:44 +0700 Subject: [PATCH] fix hover popup bug --- src/app/page.tsx | 24 +- src/uhm/components/Map.tsx | 17 +- src/uhm/components/map/useMapHoverPopup.ts | 50 ++-- .../components/preview/PinnedWikiPopup.tsx | 99 -------- src/uhm/components/preview/PreviewLayout.tsx | 148 ++++++----- .../preview/PublicPreviewClientPage.tsx | 166 ++++++++++++- .../components/preview/WikiSelectionPanel.tsx | 230 ++++++++++++++++++ .../hooks/usePublicPreviewInteraction.ts | 14 +- src/uhm/components/wiki/PublicWikiSidebar.tsx | 25 +- 9 files changed, 530 insertions(+), 243 deletions(-) delete mode 100644 src/uhm/components/preview/PinnedWikiPopup.tsx create mode 100644 src/uhm/components/preview/WikiSelectionPanel.tsx diff --git a/src/app/page.tsx b/src/app/page.tsx index d177664..f132c2f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -20,32 +20,10 @@ const srOnlyStyle: React.CSSProperties = { export default function Page() { return ( -
+
{/* Preload LCP image */} - {/* Permanent, static LCP image that is NEVER hidden or unmounted */} - {/* eslint-disable-next-line @next/next/no-img-element */} - Map Background - {/* Header (SSR & SEO) */}
- {entity?.description?.trim() ? ( -
- {entity.description.trim()} -
- ) : null} - {!compactHeader && wiki?.title?.trim() && wiki.title.trim() !== entity?.name?.trim() ? ( -
- {wiki.title.trim()} -
- ) : null}