mirror of
https://github.com/strapi/strapi.git
synced 2026-01-07 20:58:16 +00:00
Merge pull request #15656 from strapi/fix/AttributeIcon
This commit is contained in:
commit
aaf50db93c
@ -53,9 +53,10 @@ const iconByTypes = {
|
||||
};
|
||||
|
||||
const IconBox = styled(Box)`
|
||||
width: ${pxToRem(32)};
|
||||
height: ${pxToRem(24)};
|
||||
box-sizing: content-box;
|
||||
svg {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
`;
|
||||
|
||||
const AttributeIcon = ({ type, customField, ...rest }) => {
|
||||
@ -75,7 +76,11 @@ const AttributeIcon = ({ type, customField, ...rest }) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <IconBox as={Compo} {...rest} aria-hidden />;
|
||||
return (
|
||||
<IconBox height={pxToRem(24)} width={pxToRem(32)} shrink={0} {...rest} aria-hidden>
|
||||
<Box as={Compo} />
|
||||
</IconBox>
|
||||
);
|
||||
};
|
||||
|
||||
AttributeIcon.defaultProps = {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user