Fix translations and line-height settings not working for some books (#73)
This commit is contained in:
@@ -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": "並排閱讀",
|
||||
|
||||
@@ -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'};
|
||||
|
||||
Reference in New Issue
Block a user