Fixing centering of rendered SVG when container is too small
This commit is contained in:
parent
1362ceb8c8
commit
9eea045d2b
@ -1,8 +1,6 @@
|
|||||||
@import url('../../globals.css');
|
@import url('../../globals.css');
|
||||||
|
|
||||||
.render {
|
.render {
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: var(--color-white);
|
background: var(--color-white);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -12,6 +10,6 @@
|
|||||||
& svg {
|
& svg {
|
||||||
display: block;
|
display: block;
|
||||||
transform: scaleZ(1); /* Move to separate render layer in Chrome */
|
transform: scaleZ(1); /* Move to separate render layer in Chrome */
|
||||||
flex-shrink: 0;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user