check images and dark mode

This commit is contained in:
polv committed 2026-03-22 00:41:56 +07:00
1 parent 978ebfa75f
commit 904cdd0413
10 files changed
+122 -19

No files matched your search

+2 -3
View File
@@ -57,14 +57,13 @@ export default function Glossary({
function GlossaryImage({ img, yomitanURL }: { img: any; yomitanURL: string }) {
return (
<img
className="glossary-image"
src={`${yomitanURL || ""}/${img.path}`}
width={img.width}
height={img.height}
title={img.title}
alt={img.alt}
style={{
imageRendering: img.imageRendering || "auto",
width: `${img.width}em`,
width: `${img.width}em`, // unit seems to be em, not px
height: `${img.height}em`,
}}
/>