chore: Keep SVG to max height of the screen
This commit is contained in:
parent
f0d3f21070
commit
2da980592a
1 changed files with 6 additions and 1 deletions
|
@ -60,7 +60,12 @@ const Draft = props => {
|
|||
|
||||
return (
|
||||
<div className="my-8 w-11/12 m-auto border-2 border-dotted border-base-content shadow">
|
||||
<Svg {...patternProps} embed={gist.embed} ref={svgRef} viewBox={layout.topLeft ? `${layout.topLeft.x} ${layout.topLeft.y} ${layout.width} ${layout.height}` : false}>
|
||||
<Svg {...patternProps}
|
||||
embed={gist.embed}
|
||||
ref={svgRef}
|
||||
viewBox={layout.topLeft ? `${layout.topLeft.x} ${layout.topLeft.y} ${layout.width} ${layout.height}` : false}
|
||||
style={{maxHeight: '100vh'}}
|
||||
>
|
||||
<Defs {...patternProps} />
|
||||
<style>{`:root { --pattern-scale: ${gist.scale || 1}}`}</style>
|
||||
<g>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue