Skip to content
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

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

bosiraphael
Copy link
Contributor

@bosiraphael bosiraphael commented Nov 5, 2024

Closes #8304

The position of the modal container wasn't absolute, so the gap was also applied after the ShowPageMoreButton

@bosiraphael bosiraphael linked an issue Nov 5, 2024 that may be closed by this pull request
Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 with position: absolute in /packages/twenty-front/src/modules/action-menu/components/ActionMenuConfirmationModals.tsx to fix button alignment
  • Removed redundant fragment wrapper (<></>) around RecordShowActionMenu 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

Comment on lines +5 to +7
const StyledActionMenuConfirmationModals = styled.div`
position: absolute;
`;
Copy link
Contributor

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

import styled from '@emotion/styled';

const StyledActionMenuConfirmationModals = styled.div`
position: absolute;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

display: none

@charlesBochet charlesBochet merged commit 9e051d7 into main Nov 5, 2024
19 checks passed
@charlesBochet charlesBochet deleted the 8304-action-menu-buttons-alignment branch November 5, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Action menu buttons alignment
2 participants