Repository navigation
Add a theme-aware reading width slider - #84
Merged
minchenlee merged 3 commits intoNov 5, 2026
Merged
Conversation
Resolve conflicts with MDV-048 pointer support: the editor keeps main's WheelGate and margin click area at the saved reading width, the reader column keeps its id, and the status footer keeps main's statistic cycling inside the shortcut row above the width slider. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BDZchfH1Ariata8rWBTLg5
The floating slider covered every document and pushed the shortcut and status pills up. Reading width is now a Settings row with four presets (Narrow, Default, Wide, Full), stepped with Cmd-Option-[ and ], and listed in the View menu, the command palette, and the shortcut sheet. Each preset is a width in ems of the body size, so a font zoom keeps the characters per line. Default is 45 em, the old 720 px at 16 px. Prefs store the preset name; an unknown value, such as the pixel width an earlier build saved, falls back to Default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BDZchfH1Ariata8rWBTLg5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a theme-aware slider at the bottom-right of the document to adjust the maximum reading-column width. Changes reflow text and diagrams immediately, clear measured heights and remeasure the virtual window; the selected cap is saved on release.
This PR branches directly from upstream main and is independent of #82 and #83. It changes only reading layout, preference storage and footer controls; renderer, preview modal, dependencies and project-control documents are unchanged. It is separated as requested in review and may need rebasing after the pointer-support PRs land.
Validation:
cargo check --locked,cargo fmt --all --checkandgit diff --checkpassed on macOS arm64. Existing import/future-compatibility warnings remain. No automated test suite or fresh standalone native visual check was run; the control was previously tried as part of the combined experimental build. Manual checks: text/diagram reflow while dragging, sidebar/window resizing, light/dark colors, restart persistence and hidden states.