From 490be6a5ce88ac13d42cb1b6257861cf30eba525 Mon Sep 17 00:00:00 2001 From: remi Date: Fri, 27 May 2022 22:31:15 +0200 Subject: [PATCH] aaAAaaAAa --- h2i.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/h2i.html b/h2i.html index df1a84b..f61dafd 100644 --- a/h2i.html +++ b/h2i.html @@ -92,7 +92,7 @@ /* darkmode */ @media (prefers-color-scheme: dark) { :root { - --bg: #000000; + --bg: #000000 !important; } } @@ -155,7 +155,11 @@ ctx.font = fsize.value + "px heonian"; ctx.fillText(hinput.value, 0, fsize.value); - cropToContent(); + if (hinput.value.length > 0) { + cropToContent(); + } else { + img.src = ''; + } } let ime = new HeonianIME(hinput);