Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

[Feature]: Preview Mode Display Width Adjustment

Open jh82gh opened this issue 4 months ago • 4 comments

Hello

Could you please add a parameter to adjust the display width in preview mode? Please refer to the example in the attached image.

Currently, the content size in preview mode is approximately 840px, which appears a bit small on a 1920px wide screen.

I know I can adjust the display width using Ctrl + "+", Ctrl + "-", Ctrl + "0", but this causes the position shift when click table of contents to quick jump.

Thank you.

Image

jh82gh avatar Jul 25 '26 04:07 jh82gh

@alecdotdev I have started a focused stacked implementation: #321 establishes the validated, persistent width preference (880 px default; 640–1600 px clamp) without coupling it to Monaco wrapping. The next PR will expose it in Settings and apply it to preview/ToC/print behavior.

PathGao avatar Jul 31 '26 07:07 PathGao

@alecdotdev Added #323 to the #263 stack: the persisted width now has a bounded Settings control, default/range guidance, stepper buttons, and reset behavior. Keyboard shortcuts, full-width preference migration, and print isolation are next as separate reviewable PRs.

PathGao avatar Jul 31 '26 07:07 PathGao

@alecdotdev The follow-up stack is now ready for review: #324 adds the scoped 40 px keyboard adjustment and #325 migrates Full width to preview.fullWidth. The existing global print stylesheet already makes the print flow independent of the on-screen width; the remaining validation is the platform PDF manual matrix.

PathGao avatar Jul 31 '26 07:07 PathGao

Implemented in #346–#349: Settings → Preview width sets the preview column between 640 and 1600 px (default 880), with Ctrl/⌘+Alt+[ and ] to adjust it live.

Worth noting against your original description: this is a width setting, not zoom, so it doesn't shift table-of-contents jump targets the way Ctrl/⌘+± does.

On master, not yet in a release.

PathGao avatar Aug 02 '26 21:08 PathGao