Skip to content

Commit 999c8d1

Browse files
committed
Animate the opacity too
1 parent 66fdf23 commit 999c8d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ export function SideMenuItem({
6262
>
6363
{name}
6464
</motion.span>
65-
{badge && (
65+
{badge && !isCollapsed && (
6666
<motion.div
6767
className="ml-1 flex shrink-0 items-center gap-1"
6868
initial={false}
6969
animate={{
70-
opacity: isCollapsed ? 0 : 1,
70+
opacity: 1,
7171
}}
7272
transition={{ duration: 0.15, ease: "easeOut" }}
7373
>

0 commit comments

Comments
 (0)