Skip to content

Commit 2303ffe

Browse files
committed
hide divide line
1 parent 89f86f1 commit 2303ffe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ export function SideMenuSection({
5555
<ToggleArrowIcon className="size-2" />
5656
</motion.div>
5757
</motion.div>
58-
{/* Divider - absolutely positioned, visible when sidebar is collapsed */}
58+
{/* Divider - absolutely positioned, visible when sidebar is collapsed but section is expanded */}
5959
<motion.div
6060
className="absolute left-2 right-2 top-1 h-px bg-charcoal-600"
6161
initial={false}
6262
animate={{
63-
opacity: isSideMenuCollapsed ? 1 : 0,
63+
opacity: isSideMenuCollapsed && !isCollapsed ? 1 : 0,
6464
}}
6565
transition={{ duration: 0.15, ease: "easeOut" }}
6666
/>
@@ -69,7 +69,7 @@ export function SideMenuSection({
6969
<motion.div
7070
className="w-full"
7171
initial={isCollapsed ? "collapsed" : "expanded"}
72-
animate={isCollapsed && !isSideMenuCollapsed ? "collapsed" : "expanded"}
72+
animate={isCollapsed ? "collapsed" : "expanded"}
7373
exit="collapsed"
7474
variants={{
7575
expanded: {

0 commit comments

Comments
 (0)