From dfa17c1c0bc0e0ba03a7d5d11112ac7f0f0f9364 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 5 Jun 2025 02:08:16 +0800 Subject: [PATCH] css: auto height for single images in anchor (#1337) --- 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 88807255..ad6088ab 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -269,7 +269,7 @@ const getLayoutStyles = ( p img, span img, sup img { height: 1em; } - p:has(> img:only-child) img, span:has(> img:only-child) img { + p:has(> a:only-child) img, p:has(> img:only-child) img, span:has(> img:only-child) img { height: auto; }