Fix scaling for large monitor

This commit is contained in:
Shingo Ichijima
2020-08-03 23:25:33 +09:00
parent 87e3ebfaa8
commit 2107a1af45

View File

@ -34,6 +34,7 @@ const Artboard = () => {
className={styles.container} className={styles.container}
style={{ style={{
transform: `scale(${width / 1680})`, transform: `scale(${width / 1680})`,
transformOrigin: `${width / 1680 > 1.0 ? `top left` : ``}`,
}} }}
> >
{template === 'onyx' && <Onyx data={state} />} {template === 'onyx' && <Onyx data={state} />}