css: fix initial text align (#1786)

This commit is contained in:
Huang Xin
2025-08-13 00:37:00 +08:00
committed by GitHub
parent 0dfa8e96f5
commit 634d789654
+1 -1
View File
@@ -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;