fix(css): override inline image background color only when overriding book color, closes #3316 (#3365)

This commit is contained in:
Huang Xin
2026-02-24 23:04:28 +08:00
committed by GitHub
parent dcf75e07d1
commit 5f71fd9e47
+1 -1
View File
@@ -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'};