-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix: navigation drawer clip while making folder in favorites #8619
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
Fixed navigation drawer overflow issue when creating favorite folders by adjusting input and icon padding in NavigationDrawerInput component.
- Removed default padding from
StyledTextInput
in/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerInput.tsx
to prevent overflow - Added
paddingRight: theme.spacing(2)
to Icon component to maintain consistent spacing - Ensures input text stays within drawer boundaries while preserving visual alignment
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
… if collapsed on adding folder from picker
@@ -27,6 +31,7 @@ export const FavoriteFolderPickerFooter = () => { | |||
<MenuItem | |||
className="add-folder" | |||
onClick={() => { | |||
setIsNavigationDrawerExpanded(true); |
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.
@martmull How about this? I missed this earlier and added it here -- not related to the issue.
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.
@ehconitin nice change
You should add also a setFavoriteFolderExpanded(true) when clicking on the add folder icon on the 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.
Hey, nice one thank you. One comment
@@ -27,6 +31,7 @@ export const FavoriteFolderPickerFooter = () => { | |||
<MenuItem | |||
className="add-folder" | |||
onClick={() => { | |||
setIsNavigationDrawerExpanded(true); |
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.
@ehconitin nice change
You should add also a setFavoriteFolderExpanded(true) when clicking on the add folder icon on the 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.
LGTM thank you guys
Thanks @harshrajeevsingh for your contribution! |
Fixes: #8606
Reason for the issue:
The issue was caused by the padding in
TEXT_INPUT_STYLE
, which was being applied to theStyledTextInput
component used inNavigationDrawerInput
.Changes
StyledTextInput
with a value of 0.Icon
. This ensures consistent spacing between the Icon and the input value, maintaining the same visual alignment as before.Screencast.from.2024-11-20.23-32-24.webm