fix: add option to override justify style in books, closes #671 (#687)

This commit is contained in:
Huang Xin
2025-03-23 23:59:45 +08:00
committed by GitHub
parent a79f301165
commit 14f2db730a
+1 -1
View File
@@ -205,7 +205,7 @@ const getLayoutStyles = (
word-spacing: ${wordSpacing}px ${overrideLayout ? '!important' : ''};
letter-spacing: ${letterSpacing}px ${overrideLayout ? '!important' : ''};
text-indent: ${textIndent}em ${overrideLayout ? '!important' : ''};
text-align: inherit;
text-align: ${overrideLayout ? 'var(--default-text-align) !important' : 'inherit'};
-webkit-hyphens: ${hyphenate ? 'auto' : 'manual'};
hyphens: ${hyphenate ? 'auto' : 'manual'};
-webkit-hyphenate-limit-before: 3;