-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed expandable list and navigation menu #8336
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR addresses UI bugs in the navigation and dropdown components by improving scrolling behavior and dropdown positioning.
- Added
ScrollWrapper
components inMainNavigationDrawerItems.tsx
andCurrentWorkspaceMemberFavorites.tsx
to enable proper scrolling in navigation menus - Changed
DropdownMenu
height from '100%' to 'auto' inDropdownMenu.tsx
for better content fitting - Implemented
FloatingPortal
andshift()
middleware inExpandedListDropdown.tsx
to prevent dropdowns from going off-screen - Modified dropdown placement to 'bottom-start' for consistent positioning
4 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
}} | ||
Icon={IconSettings} | ||
/> | ||
<ScrollWrapper contextProviderName="navigationDrawer"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: ScrollWrapper added here only wraps Search and Settings items, but other navigation sections remain outside scroll context. Consider if other sections need scrolling support too.
packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerItems.tsx
Outdated
Show resolved
Hide resolved
anchorElement | ||
? Math.max(220, anchorElement.getBoundingClientRect().width) | ||
: undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: getBoundingClientRect() could cause layout thrashing if called frequently. Consider memoizing this value if the anchorElement changes often.
For release 0.32