Skip to content

feat: 阅读器内章节跳转(上一章/下一章/章节列表)#30

Open
lemonteaau wants to merge 4 commits into
pixes-app:masterfrom
lemonteaau:chapter-nav
Open

feat: 阅读器内章节跳转(上一章/下一章/章节列表)#30
lemonteaau wants to merge 4 commits into
pixes-app:masterfrom
lemonteaau:chapter-nav

Conversation

@lemonteaau

@lemonteaau lemonteaau commented Jun 5, 2026

Copy link
Copy Markdown

阅读器章节跳转

给小说阅读器加了章节导航:正文章末会出现「上一章 / 章节列表 / 下一章」,可以直接跳到上一篇、下一篇,或者打开章节列表跳到指定的某一篇,不用再退回详情页选章节。
顺手修了下 iOS 构建 workflow
Build_IOS 之前写死了 xcode-select --switch /Applications/Xcode_26.4.0.app,但 runner 上这个 Xcode 版本已经没了,构建会直接挂在这一步。改成动态选择 runner上最新的 Xcode(优先 Xcode 26),构建就能正常跑。

截图

正文章末:
image

章节导航:
image

lemonteaau and others added 4 commits June 5, 2026 14:50
在系列小说阅读页底部加入章节导航条(上一章 / 当前·总数 / 下一章),
中间按钮可打开侧边章节列表直接跳到指定篇目,无需返回详情页手选。
切章后原地重载并回到顶部,仅对系列(series)小说显示。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The macos runner no longer ships Xcode_26.4.0.app, so the pinned
xcode-select path failed before the build could start. Pick the highest
installed Xcode 26 (falling back to the newest Xcode) dynamically.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The reader body uses DefaultTextStyle height:1.6 for paragraph spacing,
which leaked into the chapter-nav buttons and pushed the "n / total"
label below the icon. Pin the button labels to height:1.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
height:1.0 alone still let the default proportional leading push the
glyph down (CJK/digit fonts have ascent >> descent). Use
TextLeadingDistribution.even so the label is vertically centered with
the icon.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant