From 99f8a29326b0e1ac9e03a521dbe01d8558667cc8 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Mon, 9 Mar 2026 21:01:44 +0800 Subject: [PATCH] fix(css): apply Line Spacing to list elements, closes #3494 (#3498) --- apps/readest-app/src/utils/style.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index 6c8e578f..9cf19e9e 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -316,6 +316,11 @@ const getLayoutStyles = ( hanging-punctuation: allow-end last; widows: 2; } + li { + line-height: ${lineSpacing} ${overrideLayout ? '!important' : ''}; + -webkit-hyphens: ${hyphenate ? 'auto' : 'manual'}; + hyphens: ${hyphenate ? 'auto' : 'manual'}; + } p.aligned-center, blockquote.aligned-center, dd.aligned-center, div.aligned-center { text-align: center ${overrideLayout ? '!important' : ''};