fix: unhardcode background color in non-default themes (#729)

This commit is contained in:
Huang Xin
2025-03-27 20:05:03 +08:00
committed by GitHub
parent 10aace0026
commit baac9dfa25
+1 -1
View File
@@ -197,7 +197,7 @@ const getLayoutStyles = (
background: var(--background-set, none);
}
body *:not(a):not(#b1):not(#b1 *):not(#b2):not(#b2 *):not(img):not(.bg):not(.bg *):not(.vol):not(.vol *):not(.background):not(.background *) {
${isDarkMode ? `background-color: ${bg} !important;` : ''}
${bg === '#ffffff' ? '' : `background-color: ${bg} !important;`}
}
body {
overflow: unset;