fix(content-releases): use the same width and height for the two menus (#19399)

This commit is contained in:
Simone 2024-02-05 09:42:39 +01:00 committed by GitHub
parent 44f19b3d2f
commit 3054a74dd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -104,7 +104,7 @@ const DeleteReleaseActionItem = ({ releaseId, actionId }: DeleteReleaseActionIte
<CheckPermissions permissions={PERMISSIONS.deleteAction}>
<StyledMenuItem variant="danger" onSelect={handleDeleteAction}>
<Flex gap={2}>
<Icon as={Cross} padding={1} />
<Icon as={Cross} width={3} height={3} />
<Typography textColor="danger600" variant="omega">
{formatMessage({
id: 'content-releases.content-manager-edit-view.remove-from-release',
@ -164,7 +164,7 @@ const ReleaseActionEntryLinkItem = ({
pathname: `/content-manager/collection-types/${contentTypeUid}/${entryId}`,
search: locale && `?plugins[i18n][locale]=${locale}`,
}}
startIcon={<Icon as={Pencil} padding={1} />}
startIcon={<Icon as={Pencil} width={3} height={3} />}
>
<Typography variant="omega">
{formatMessage({

View File

@ -89,16 +89,16 @@ const StyledFlex = styled(Flex)<{ disabled?: boolean }>`
`;
const PencilIcon = styled(Pencil)`
width: ${({ theme }) => theme.spaces[4]};
height: ${({ theme }) => theme.spaces[4]};
width: ${({ theme }) => theme.spaces[3]};
height: ${({ theme }) => theme.spaces[3]};
path {
fill: ${({ theme }) => theme.colors.neutral600};
}
`;
const TrashIcon = styled(Trash)`
width: ${({ theme }) => theme.spaces[4]};
height: ${({ theme }) => theme.spaces[4]};
width: ${({ theme }) => theme.spaces[3]};
height: ${({ theme }) => theme.spaces[3]};
path {
fill: ${({ theme }) => theme.colors.danger600};
}