Skip to content

Commit d73c201

Browse files
committed
feat: update add timeout
1 parent 0e93278 commit d73c201

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

epub_browser/assets/chapter.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,6 @@ body {
893893

894894
/* CSS Column 分页样式 - 使用 CSS Column 实现分页 */
895895
.pagination-mode #eb-content {
896-
/* 上面不影响进度条 */
897-
margin-top: 20px !important;
898896
height: 100%;
899897
padding: 0px !important;
900898
margin: 0;

epub_browser/assets/chapter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ function initScript() {
592592

593593
const viewportHeight = window.innerHeight;
594594

595-
let contentHeight = viewportHeight - bottomNavHeight - bottomNavMobileHeight - 40; // 减去边距和安全余量,安全余量就是 margin-top: 20px,然后上下不就都是 20 了
595+
let contentHeight = viewportHeight - bottomNavHeight - bottomNavMobileHeight; // 减去边距和安全余量,安全余量就是 margin-top: 20px,然后上下不就都是 20 了
596596
contentContainer.style.height = `${viewportHeight - bottomNavHeight - bottomNavMobileHeight}px`;
597597

598598
// 直接设置内容容器的高度
@@ -631,8 +631,8 @@ function initScript() {
631631
setTimeout(() => {
632632
calculateTotalPages();
633633
pageJumpInput.setAttribute('max', totalPages);
634-
}, 100);
635-
}, 100);
634+
}, 200);
635+
}, 200);
636636
}
637637

638638
// 计算总页数

0 commit comments

Comments
 (0)