forked from external-repos/squoosh
Fix prerender SVG size
This commit is contained in:
@@ -247,7 +247,11 @@ export default class Intro extends Component<Props, State> {
|
||||
</h1>
|
||||
<div class={style.loadImg}>
|
||||
{showBlobSVG && (
|
||||
<svg class={style.blobSvg} viewBox="-1.25 -1.25 2.5 2.5">
|
||||
<svg
|
||||
class={style.blobSvg}
|
||||
viewBox="-1.25 -1.25 2.5 2.5"
|
||||
preserveAspectRatio="xMidYMid slice"
|
||||
>
|
||||
{startBlobs.map((points) => (
|
||||
<path
|
||||
d={points
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
position: relative;
|
||||
--size: 29rem;
|
||||
max-width: var(--size);
|
||||
width: 100vw;
|
||||
height: var(--size);
|
||||
display: grid;
|
||||
grid-template-rows: max-content max-content;
|
||||
|
||||
Reference in New Issue
Block a user