aaAAaaAAa

This commit is contained in:
remi 2022-05-27 22:31:15 +02:00
parent 2468802869
commit 490be6a5ce

View File

@ -92,7 +92,7 @@
/* darkmode */ /* darkmode */
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--bg: #000000; --bg: #000000 !important;
} }
} }
</style> </style>
@ -155,7 +155,11 @@
ctx.font = fsize.value + "px heonian"; ctx.font = fsize.value + "px heonian";
ctx.fillText(hinput.value, 0, fsize.value); ctx.fillText(hinput.value, 0, fsize.value);
cropToContent(); if (hinput.value.length > 0) {
cropToContent();
} else {
img.src = '';
}
} }
let ime = new HeonianIME(hinput); let ime = new HeonianIME(hinput);