From 5f71fd9e470095f482e7dc138c115c025447ba32 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Tue, 24 Feb 2026 23:04:28 +0800 Subject: [PATCH] fix(css): override inline image background color only when overriding book color, closes #3316 (#3365) --- 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 786e5828..bad7c882 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -177,7 +177,7 @@ const getColorStyles = ( } /* inline images */ *:has(> img.has-text-siblings):not(body) { - background-color: ${bg}; + ${overrideColor ? `background-color: ${bg};` : ''} } p img.has-text-siblings, span img.has-text-siblings, sup img.has-text-siblings { mix-blend-mode: ${isDarkMode ? 'screen' : 'multiply'};