-
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
Scrollable fixed dropdowns container minor refactor #9159
Scrollable fixed dropdowns container minor refactor #9159
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 standardizes dropdown menu behavior and structure across multiple components in the Twenty frontend.
- Changed
withoutScrollWrapper
prop toscrollable={false}
inDropdownMenuItemsContainer
components for more intuitive API - Removed unnecessary
DropdownMenu
wrapper components while preserving functionality in summary cards and select forms - Added
DropdownMenuSeparator
components between content sections for better visual hierarchy - Fixed save/action buttons to be non-scrollable in view pickers and relation selectors
- Simplified dropdown menu structure by removing redundant fragment wrappers and organizing imports
20 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
@@ -87,7 +87,7 @@ export const ObjectOptionsDropdownHiddenFieldsContent = () => { | |||
closeDropdown(); | |||
}} | |||
> | |||
<DropdownMenuItemsContainer withoutScrollWrapper> | |||
<DropdownMenuItemsContainer scrollable={false}> |
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: scrollable={false} is only needed for single menu items that don't require scrolling. Consider removing this prop since it's redundant here - the container will never need to scroll with just one menu item.
@@ -144,7 +144,7 @@ export const MultiRecordSelect = ({ | |||
{dropdownPlacement?.includes('end') && ( |
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: duplicate code structure between end and start placement branches. Consider extracting into a shared function to reduce code duplication
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.
Nice work !
Thanks @ehconitin for your contribution! |
Co-authored-by: Lucas Bordeau <[email protected]>
Co-authored-by: Lucas Bordeau <[email protected]>
No description provided.