From 2283e1b0f2bd972913ad848dc92ddf9baedcb86d Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Sat, 18 Oct 2025 23:25:37 +0800 Subject: [PATCH] fix(layout): fix inline image, closes #2263 (#2266) --- apps/readest-app/src/utils/style.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index efb13b77..75d721b9 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -335,22 +335,22 @@ const getLayoutStyles = ( } /* inline images without dimension */ + .ie6 img { + width: unset; + height: unset; + } sup img { height: 1em; } img.has-text-siblings { height: 1em; - vertical-align: baseline; + vertical-align: middle; } - img.has-text-siblings[style*="object-fit"] { + :is(div) > img.has-text-siblings[style*="object-fit"] { display: block; height: auto; vertical-align: unset; } - .ie6 img { - width: auto; - height: auto; - } .duokan-footnote img:not([class]) { width: 0.8em; height: 0.8em;