fix(webui): skip initial route entrance motion

Prevent the top-bar title and main route content from animating during the first authenticated render. This removes first-load flashing while preserving the existing transitions for subsequent navigation.
This commit is contained in:
DrSmoothl committed 2026-07-16 16:06:12 +08:00
1 parent e224a0c6ea
commit f581fab396
2 files changed
+2 -2

No files matched your search

@@ -59,7 +59,7 @@ export function TopBar({
)}
{/* Page title */}
<AnimatePresence mode="wait">
<AnimatePresence initial={false} mode="wait">
<motion.div
key={pathname}
initial={{ opacity: 0, x: -8 }}