make cropper a bit bigger so we can scale down instead of having to scale up to 128×128

This commit is contained in:
Max Bradbury 2020-11-07 10:57:01 +00:00
parent 013e1e1c8c
commit ec44370d7e
2 changed files with 1 additions and 5 deletions

View File

@ -120,10 +120,6 @@ textarea {
position: relative; position: relative;
} }
#crop canvas {
height: 32vh;
}
#preview { #preview {
width: 256px; width: 256px;
height: 256px; height: 256px;

View File

@ -78,7 +78,7 @@ async function run() {
const textareaGameDataInput = el("game-data"); const textareaGameDataInput = el("game-data");
const textareaGameDataOutput = el("output"); const textareaGameDataOutput = el("output");
const cropper = new Cropper({ width: 128, height: 128 }); const cropper = new Cropper({ width: 192, height: 192 });
let cropperRendered = false; let cropperRendered = false;
// hide all pages except start page // hide all pages except start page