From 634d7896542217e04041b70d56460acaaea8d511 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Wed, 13 Aug 2025 00:37:00 +0800 Subject: [PATCH] css: fix initial text align (#1786) --- 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 5babadbf..373f6040 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -242,7 +242,7 @@ const getLayoutStyles = ( letter-spacing: ${letterSpacing}px ${overrideLayout ? '!important' : ''}; text-indent: ${vertical ? textIndent * 1.2 : textIndent}em ${overrideLayout ? '!important' : ''}; ${justify ? `text-align: justify ${overrideLayout ? '!important' : ''};` : ''} - ${!justify && overrideLayout ? 'text-align: unset !important;' : ''}; + ${!justify && overrideLayout ? 'text-align: initial !important;' : ''}; -webkit-hyphens: ${hyphenate ? 'auto' : 'manual'}; hyphens: ${hyphenate ? 'auto' : 'manual'}; -webkit-hyphenate-limit-before: 3;