From cf6a49d89c78ffa205b78597b277cd1cb1ccafad Mon Sep 17 00:00:00 2001 From: Armaan Jain <84474476+Developing-Gamer@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:36:16 -0700 Subject: [PATCH] Dashboard sidebar animation fix (#1601) --- ## Summary by cubic Fixes the project sidebar animation flicker by always applying overflow-hidden to the animated container and only toggling h-0 when collapsed. Expanding and collapsing sections now animate smoothly without content popping. Written for commit 7af633b1e7a45a13be8d72ef2c7691089ebc7458. Summary will update on new commits. Review in cubic ## Summary by CodeRabbit * **Bug Fixes** * Improved the visual clipping behavior of nested sidebar items during expand/collapse transitions for smoother animations. --- .../(protected)/projects/[projectId]/sidebar-layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sidebar-layout.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sidebar-layout.tsx index a600f04db..cf521dd11 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sidebar-layout.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sidebar-layout.tsx @@ -319,8 +319,8 @@ function NavItem({ : "0px", }} className={cn( - "ml-[0.5px] w-[calc(100%-1px)] transition-[height] duration-200", - !isExpanded && "h-0 overflow-hidden" + "ml-[0.5px] w-[calc(100%-1px)] overflow-hidden transition-[height] duration-200", + !isExpanded && "h-0" )} >