From 05af7f19f57675ca7093a967bf3c7836826c8d34 Mon Sep 17 00:00:00 2001 From: taDuc Date: Sun, 14 Jun 2026 01:10:07 +0700 Subject: [PATCH] refactor: improve map preview transition and layout stability with opacity animations and adjusted loading delay --- src/app/layout.tsx | 2 +- src/uhm/components/preview/MapPlaceholder.tsx | 4 +- .../preview/PublicPreviewClientPage.tsx | 400 +++++++++--------- .../preview/PublicPreviewWrapper.tsx | 8 - 4 files changed, 208 insertions(+), 206 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a81bbda..a230ef3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -8,7 +8,7 @@ export const metadata: Metadata = { title: 'Ultimate History Map', description: 'Bản đồ tương tác lịch sử thế giới qua các thời kỳ', }; - + const inter = Inter({ subsets: ['latin', 'vietnamese'], weight: ['400', '500', '600', '700'], diff --git a/src/uhm/components/preview/MapPlaceholder.tsx b/src/uhm/components/preview/MapPlaceholder.tsx index ae83ebf..04a5cf6 100644 --- a/src/uhm/components/preview/MapPlaceholder.tsx +++ b/src/uhm/components/preview/MapPlaceholder.tsx @@ -141,8 +141,8 @@ export default function MapPlaceholder({ onEnter }: MapPlaceholderProps) {