We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6abd7 commit e086fe1Copy full SHA for e086fe1
apps/webapp/app/components/navigation/SideMenu.tsx
@@ -739,17 +739,15 @@ function CollapsibleElement({
739
className?: string;
740
}) {
741
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" }}
+ <div
+ className={cn(
+ "overflow-hidden transition-all duration-200",
+ isCollapsed ? "max-w-0 opacity-0" : "max-w-[100px] opacity-100",
+ className
+ )}
750
>
751
{children}
752
- </motion.div>
+ </div>
753
);
754
}
755
0 commit comments