From 29e6af7768d5dc825530818463dda55d56cc3765 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Tue, 4 Mar 2025 13:02:18 +0800 Subject: [PATCH] fix: handle hardcoded border color of chapter header for Feedbooks, closes #470 (#485) --- apps/readest-app/src/utils/style.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index b89ee65d..3c2ab770 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -178,7 +178,6 @@ const getLayoutStyles = ( background: var(--background-set, none); } body *:not(a):not(#b1):not(#b1 *):not(#b2):not(#b2 *):not(.bg):not(.bg *):not(.vol):not(.vol *):not(.background):not(.background *) { - border-color: currentColor !important; ${bg === '#ffffff' ? '' : `color: inherit;`} ${bg === '#ffffff' ? '' : `background-color: ${bg} !important;`} } @@ -227,6 +226,10 @@ const getLayoutStyles = ( .calibre { color: unset; } + + .chapterHeader { + border-color: unset; + } `; export const getFootnoteStyles = () => `