fix: use transform scale instead of width for better border radius preservation
This commit is contained in:
1 parent
c490508252
commit
136144b8ec
1 file changed
+2
-4
@@ -19,10 +19,8 @@ const FallbackBackground = () => {
|
|||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
border: "none",
|
border: "none",
|
||||||
borderRadius: theme.spacing(8),
|
borderRadius: theme.spacing(8),
|
||||||
width: "66.67%", // 2/3 of original size
|
width: "100%",
|
||||||
maxWidth: "66.67%",
|
transform: "scale(0.6667)",
|
||||||
display: "block",
|
|
||||||
objectFit: "contain",
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Box
|
<Box
|
||||||
|
|||||||
Reference in new issue
Block a user