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:
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 }}
|
||||
|
||||
Reference in new issue
Block a user