Skip to content

Commit 2fe465c

Browse files
committed
feat(webapp): align the project section padding with the nav items
- Apply the scrollable section left padding to the top Project section (Project header, project selector, environment selector), animated in sync with the collapse - Keep the menus reducing width instead of shifting right by holding their right edge - Match the section right and bottom padding to the left padding for symmetry, since there is no scrollbar in this section - Leave the organization menu unchanged
1 parent 8e37da9 commit 2fe465c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,12 @@ export function SideMenu({
332332
</CollapsibleElement>
333333
) : null}
334334
</div>
335-
<div className="border-b border-grid-bright px-1 pb-1 pt-1">
335+
<div
336+
className={cn(
337+
"border-b border-grid-bright pt-1 transition-[padding] duration-200",
338+
isCollapsed ? "pb-1 pl-1 pr-1" : "pb-2.5 pl-2.5 pr-2.5"
339+
)}
340+
>
336341
<div className="w-full space-y-1">
337342
<SideMenuHeader title={"Project"} isCollapsed={isCollapsed} collapsedTitle="Proj" />
338343
<div className="space-y-1">

0 commit comments

Comments
 (0)