Skip to content

Commit 24557d8

Browse files
committed
fix(webapp): keep the project section bottom padding constant when collapsing
The top section's bottom padding was pb-1 when collapsed and pb-2.5 when open, causing a vertical layout shift below the environment menu on toggle. Make it a constant pb-2.5 so only the horizontal padding animates.
1 parent d5c39f5 commit 24557d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ export function SideMenu({
332332
</div>
333333
<div
334334
className={cn(
335-
"border-b border-grid-bright pt-1 transition-[padding] duration-200",
336-
isCollapsed ? "pb-1 pl-1 pr-1" : "pb-2.5 pl-2.5 pr-2.5"
335+
"border-b border-grid-bright pb-2.5 pt-1 transition-[padding] duration-200",
336+
isCollapsed ? "pl-1 pr-1" : "pl-2.5 pr-2.5"
337337
)}
338338
>
339339
<div className="w-full space-y-1">

0 commit comments

Comments
 (0)