-
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
8304 - Fix Action Menu Buttons Alignment #8348
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 fixes UI alignment issues in the action menu by adjusting button positioning and removing unnecessary wrapper elements.
- Added
StyledActionMenuConfirmationModals
withposition: absolute
in/packages/twenty-front/src/modules/action-menu/components/ActionMenuConfirmationModals.tsx
to fix button alignment - Removed redundant fragment wrapper (
<></>
) aroundRecordShowActionMenu
in/packages/twenty-front/src/pages/object-record/RecordShowPage.tsx
to eliminate unwanted gap after "more" button
2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
const StyledActionMenuConfirmationModals = styled.div` | ||
position: absolute; | ||
`; |
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: Using absolute positioning without specifying top/left/right/bottom coordinates could cause positioning issues in different viewport sizes
packages/twenty-front/src/modules/action-menu/components/ActionMenuConfirmationModals.tsx
Show resolved
Hide resolved
import styled from '@emotion/styled'; | ||
|
||
const StyledActionMenuConfirmationModals = styled.div` | ||
position: absolute; |
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.
display: none
Closes #8304
The position of the modal container wasn't absolute, so the gap was also applied after the
ShowPageMoreButton