Skip to content

Commit ca82e62

Browse files
committed
feat: add localStorage for page_height
1 parent 8fff627 commit ca82e62

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

epub_browser/processor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2845,6 +2845,12 @@ def create_chapter_template(self, content, style_links, chapter_index, chapter_t
28452845
} else if (fontSize == "small") {
28462846
contentHeight += 40;
28472847
}
2848+
if (!isKindleMode()) {
2849+
let customContentHeight = localStorage.getItem("page_height");
2850+
if (customContentHeight) {
2851+
contentHeight = parseInt(customContentHeight);
2852+
}
2853+
}
28482854
28492855
// 分割内容为页面
28502856
let currentPageContent = '';

0 commit comments

Comments
 (0)