Skip to content

Commit e086fe1

Browse files
committed
Smooth transition the env selector
1 parent ae6abd7 commit e086fe1

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -739,17 +739,15 @@ function CollapsibleElement({
739739
className?: string;
740740
}) {
741741
return (
742-
<motion.div
743-
className={cn("overflow-hidden", className)}
744-
initial={false}
745-
animate={{
746-
opacity: isCollapsed ? 0 : 1,
747-
width: isCollapsed ? 0 : "auto",
748-
}}
749-
transition={{ duration: 0.15, ease: "easeOut" }}
742+
<div
743+
className={cn(
744+
"overflow-hidden transition-all duration-200",
745+
isCollapsed ? "max-w-0 opacity-0" : "max-w-[100px] opacity-100",
746+
className
747+
)}
750748
>
751749
{children}
752-
</motion.div>
750+
</div>
753751
);
754752
}
755753

0 commit comments

Comments
 (0)