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);