Fix translations and line-height settings not working for some books (#73)

This commit is contained in:
Huang Xin
2024-12-31 14:42:08 +01:00
committed by GitHub
parent cd67f6ec3f
commit 1ad13d0b7e
3 changed files with 3 additions and 3 deletions
@@ -70,7 +70,7 @@
"Open": "打开",
"Open Book": "打开书籍",
"Override Publisher Font": "覆盖内置字体",
"Page": "页",
"Page": "页",
"Paging Animation": "翻页动画",
"Paragraph": "段落",
"Parallel Read": "并排阅读",
@@ -70,7 +70,7 @@
"Open": "打開",
"Open Book": "打開書籍",
"Override Publisher Font": "覆蓋內置字體",
"Page": "頁",
"Page": "頁",
"Paging Animation": "翻頁動畫",
"Paragraph": "段落",
"Parallel Read": "並排閱讀",
+1 -1
View File
@@ -101,7 +101,6 @@ const getLayoutStyles = (
html {
--theme-bg-color: ${bg};
--default-text-align: ${justify ? 'justify' : 'start'};
line-height: ${spacing};
hanging-punctuation: allow-end last;
orphans: 2;
widows: 2;
@@ -139,6 +138,7 @@ const getLayoutStyles = (
background-color: transparent !important;
}
p, li, blockquote, dd {
line-height: ${spacing} !important;
text-align: inherit;
-webkit-hyphens: ${hyphenate ? 'auto' : 'manual'};
hyphens: ${hyphenate ? 'auto' : 'manual'};