From aa94851f4a299eed7ca8a902be424713fbd51dfc Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Sun, 9 Nov 2025 08:15:02 +0800 Subject: [PATCH] fix: Add key prop to force animation re-trigger on tab switch Each page container now has key={currentTab} to ensure React unmounts and remounts the element on every tab switch, properly triggering the slide-in animation --- src/ui/desktop/DesktopApp.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ui/desktop/DesktopApp.tsx b/src/ui/desktop/DesktopApp.tsx index 093ba6d5..35228c70 100644 --- a/src/ui/desktop/DesktopApp.tsx +++ b/src/ui/desktop/DesktopApp.tsx @@ -179,14 +179,14 @@ function AppContent() { style={{ display: showTerminalView ? "block" : "none" }} > {showTerminalView && ( -
+
)}
{showHome && ( -
+
+
+
)} {showProfile && ( -
+
)}