From debd60fb702d0e04512ab078a5485c56d74377f0 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 5 Jun 2025 13:47:56 +0800 Subject: [PATCH] css: inline image only as direct children of p and span, closes #1340 (#1341) --- apps/readest-app/src/utils/style.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index ad6088ab..93379b79 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -266,7 +266,7 @@ const getLayoutStyles = ( } /* inline images without dimension */ - p img, span img, sup img { + p > img, span > img, sup img { height: 1em; } p:has(> a:only-child) img, p:has(> img:only-child) img, span:has(> img:only-child) img {