Skip to content

fix: force mobile mode for epub web views#695

Merged
everpcpc merged 2 commits intomainfrom
codex/epub-force-mobile-content-mode
Mar 24, 2026
Merged

fix: force mobile mode for epub web views#695
everpcpc merged 2 commits intomainfrom
codex/epub-force-mobile-content-mode

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Problem

The EPUB reader still needed iPad-specific patch experiments, but the desktop-content-mode path did not restore working font-size changes on iPad. Keeping separate iPad behavior also made the Readium integration harder to reason about.

Approach

Force every iOS EPUB web view onto the mobile content mode path so Readium consistently uses the iOS font-size patch. The reader payload now always injects the iOS patch and explicitly clears the iPadOS patch flag to avoid stale state during reloads.

Scope

  • Set paged, scrolled, and curl EPUB web views to preferredContentMode = .mobile
  • Keep Readium payload cleanup for --USER__iPadOSPatch while always using --USER__iOSPatch
  • Bump the build number to 381

Validation

  • make format
  • make build-ios

Refs #694.

Keep iOS and iPad EPUB rendering on the mobile content mode path so Readium always applies the iOS font-size patch. Also clear the iPadOS patch property explicitly to avoid stale injected state.

Refs #694.
@everpcpc everpcpc merged commit 840ab4d into main Mar 24, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/epub-force-mobile-content-mode branch March 24, 2026 10:22
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