8304 - Fix Action Menu Buttons Alignment (#8348)
Closes #8304 The position of the modal container wasn't absolute, so the gap was also applied after the `ShowPageMoreButton`
This commit is contained in:
@ -1,5 +1,10 @@
|
|||||||
import { actionMenuEntriesComponentSelector } from '@/action-menu/states/actionMenuEntriesComponentSelector';
|
import { actionMenuEntriesComponentSelector } from '@/action-menu/states/actionMenuEntriesComponentSelector';
|
||||||
import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2';
|
import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2';
|
||||||
|
import styled from '@emotion/styled';
|
||||||
|
|
||||||
|
const StyledActionMenuConfirmationModals = styled.div`
|
||||||
|
position: absolute;
|
||||||
|
`;
|
||||||
|
|
||||||
export const ActionMenuConfirmationModals = () => {
|
export const ActionMenuConfirmationModals = () => {
|
||||||
const actionMenuEntries = useRecoilComponentValueV2(
|
const actionMenuEntries = useRecoilComponentValueV2(
|
||||||
@ -7,12 +12,12 @@ export const ActionMenuConfirmationModals = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div data-select-disable>
|
<StyledActionMenuConfirmationModals data-select-disable>
|
||||||
{actionMenuEntries.map((actionMenuEntry, index) =>
|
{actionMenuEntries.map((actionMenuEntry, index) =>
|
||||||
actionMenuEntry.ConfirmationModal ? (
|
actionMenuEntry.ConfirmationModal ? (
|
||||||
<div key={index}>{actionMenuEntry.ConfirmationModal}</div>
|
<div key={index}>{actionMenuEntry.ConfirmationModal}</div>
|
||||||
) : null,
|
) : null,
|
||||||
)}
|
)}
|
||||||
</div>
|
</StyledActionMenuConfirmationModals>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -65,17 +65,15 @@ export const RecordShowPage = () => {
|
|||||||
workflowVersionId={objectRecordId}
|
workflowVersionId={objectRecordId}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<RecordShowActionMenu
|
||||||
<RecordShowActionMenu
|
{...{
|
||||||
{...{
|
isFavorite,
|
||||||
isFavorite,
|
handleFavoriteButtonClick,
|
||||||
handleFavoriteButtonClick,
|
record,
|
||||||
record,
|
objectMetadataItem,
|
||||||
objectMetadataItem,
|
objectNameSingular,
|
||||||
objectNameSingular,
|
}}
|
||||||
}}
|
/>
|
||||||
/>
|
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
</RecordShowPageHeader>
|
</RecordShowPageHeader>
|
||||||
|
|||||||
Reference in New Issue
Block a user