fix: links in mobi are now properly followed, closes #1503 (#1528)

This commit is contained in:
Huang Xin
2025-07-04 13:47:27 +08:00
committed by GitHub
parent 59013be586
commit 8a0216dcf8
2 changed files with 2 additions and 2 deletions
@@ -42,7 +42,7 @@ const ProgressInfoView: React.FC<PageInfoProps> = ({
? `${section.current + 1} · ${section.total}`
: `${section.current + 1} / ${section.total}`
: ''
: pageinfo
: pageinfo && pageinfo.current >= 0 && pageinfo.total > 0
? _(isVertical ? '{{currentPage}} · {{totalPage}}' : 'Loc. {{currentPage}} / {{totalPage}}', {
currentPage: pageinfo.current + 1,
totalPage: pageinfo.total,