compat: fix insane img dimension might cause layout miscalculation, closes #1073 (#1090)

This commit is contained in:
Huang Xin
2025-05-08 00:33:13 +08:00
committed by GitHub
parent 0b5f0ede3b
commit 0d4f61f08a
+5 -4
View File
@@ -262,6 +262,11 @@ const getLayoutStyles = (
display: none;
}
img {
height: auto;
width: auto;
}
img.pi {
${vertical ? 'transform: rotate(90deg);' : ''}
${vertical ? 'transform-origin: center;' : ''}
@@ -280,10 +285,6 @@ const getLayoutStyles = (
display: none;
}
.duokan-image-single {
height: 100vh !important;
}
.calibre {
color: unset;
}