diff --git a/packages/core/content-type-builder/admin/src/components/AttributeIcon/index.js b/packages/core/content-type-builder/admin/src/components/AttributeIcon/index.js
index 817fee83ec..65c9689096 100644
--- a/packages/core/content-type-builder/admin/src/components/AttributeIcon/index.js
+++ b/packages/core/content-type-builder/admin/src/components/AttributeIcon/index.js
@@ -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
|
Text
@@ -2410,19 +2471,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
popo
@@ -2539,7 +2606,7 @@ exports[` |
Text
@@ -2552,19 +2619,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
poq
@@ -2681,7 +2754,7 @@ exports[` |
Text
@@ -2694,19 +2767,19 @@ exports[` |
|
Text
@@ -3020,19 +3105,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
dada
@@ -3149,7 +3240,7 @@ exports[` |
Text
@@ -3162,19 +3253,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
papi
@@ -3291,7 +3388,7 @@ exports[` |
Text
@@ -3304,19 +3401,19 @@ exports[` |
| renders and matches the snapshot 1`] = ` class="c0 c25" > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Text
@@ -3843,19 +3952,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
mail
@@ -3972,7 +4087,7 @@ exports[` |
Email
@@ -3985,19 +4100,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
phone
@@ -4114,7 +4235,7 @@ exports[` |
Number
@@ -4127,19 +4248,19 @@ exports[` |
| renders and matches the snapshot 1`] = ` class="c0 c25" > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Text
@@ -4333,19 +4460,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
description
@@ -4462,7 +4595,7 @@ exports[` |
Text
@@ -4475,19 +4608,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
price
@@ -4604,7 +4743,7 @@ exports[` |
Number
@@ -4617,19 +4756,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
picture
@@ -4748,7 +4893,7 @@ exports[` |
Media
@@ -4761,19 +4906,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
very_long_description
@@ -4892,7 +5043,7 @@ exports[` |
Rich text
@@ -4905,19 +5056,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
categories
@@ -5032,7 +5189,7 @@ exports[` |
Relation with
@@ -5051,19 +5208,19 @@ exports[` |
| renders and matches the snapshot 1`] = ` class="c0 c25" > | |||||||||||||||||||||||||||||||||||||||||||||||
|
Text
@@ -5257,19 +5420,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
time
@@ -5386,7 +5555,7 @@ exports[` |
Text
@@ -5399,19 +5568,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
dishrep
@@ -5534,7 +5709,7 @@ exports[` |
Component
@@ -5548,19 +5723,19 @@ exports[` |
|||||||||||||||
| renders and matches the snapshot 1`] = ` class="c0 c25" > | |||||||||||||||||
|
Text
@@ -5704,19 +5885,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
description
@@ -5833,7 +6020,7 @@ exports[` |
Text
@@ -5846,19 +6033,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
price
@@ -5975,7 +6168,7 @@ exports[` |
Number
@@ -5988,19 +6181,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
picture
@@ -6119,7 +6318,7 @@ exports[` |
Media
@@ -6132,19 +6331,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
very_long_description
@@ -6263,7 +6468,7 @@ exports[` |
Rich text
@@ -6276,19 +6481,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
categories
@@ -6403,7 +6614,7 @@ exports[` |
Relation with
@@ -6422,19 +6633,19 @@ exports[` |
| renders and matches the snapshot 1`] = ` class="c0 c25" > | ||||||||||||||
|
Text
@@ -6669,19 +6886,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
media
@@ -6800,7 +7023,7 @@ exports[` |
Media
@@ -6813,19 +7036,19 @@ exports[`
renders and matches the snapshot 1`] = `
class="c0 c29 c9 c30"
spacing="4"
>
-
+
+
is_available
@@ -6942,7 +7171,7 @@ exports[` |
Boolean
@@ -6955,19 +7184,19 @@ exports[` |