From ec44370d7e2ee30449e06875e3e1e4f004c33732 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sat, 7 Nov 2020 10:57:01 +0000 Subject: [PATCH] =?UTF-8?q?make=20cropper=20a=20bit=20bigger=20so=20we=20c?= =?UTF-8?q?an=20scale=20down=20instead=20of=20having=20to=20scale=20up=20t?= =?UTF-8?q?o=20128=C3=97128?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/style.less | 4 ---- script.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/style.less b/includes/style.less index b55b4be..333b505 100644 --- a/includes/style.less +++ b/includes/style.less @@ -120,10 +120,6 @@ textarea { position: relative; } -#crop canvas { - height: 32vh; -} - #preview { width: 256px; height: 256px; diff --git a/script.js b/script.js index 8d5e4b1..184cd8a 100644 --- a/script.js +++ b/script.js @@ -78,7 +78,7 @@ async function run() { const textareaGameDataInput = el("game-data"); const textareaGameDataOutput = el("output"); - const cropper = new Cropper({ width: 128, height: 128 }); + const cropper = new Cropper({ width: 192, height: 192 }); let cropperRendered = false; // hide all pages except start page