-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Added max-height to innerlist to get scrolling behaviour #6541
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
Added max-height
to StyledInnerList
in CommandMenu.tsx
to enable scrolling for long command menus.
- Modified
packages/twenty-front/src/modules/command-menu/components/CommandMenu.tsx
to addmax-height
toStyledInnerList
. - Ensures command menu is scrollable when content exceeds viewport height.
- Improves user experience by allowing access to all items in the command menu.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
@@ -100,6 +100,7 @@ const StyledList = styled.div` | |||
`; | |||
|
|||
const StyledInnerList = styled.div` | |||
max-height: calc(100vh - ${({ theme }) => theme.spacing(19)}); |
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.
FYI for whoever reviews this PR ; #6209 (comment)
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.
Thanks for pointing that out, @FelixMalfait. I switched to using dvh and also adjusted the max-height for mobile screens, which I had missed in the initial commit. I appreciate the feedback—please let me know if this addresses your concern.
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.
Thanks! Made an edit for clarity of code for future readers
Thanks @ehconitin for your contribution! |
Fixes #6538
2024-08-05.15-46-28.mp4