Preview mode does not wrap text and lacks horizontal scrolling, making content inaccessible in narrow windows
Describe the bug In preview mode, long lines of text do not automatically wrap to fit the window width.
At the same time, horizontal scrolling is not available in preview mode. This means that when using the app in a narrow or portrait-oriented window, any content that extends beyond the right edge of the viewport is completely inaccessible — there is no way to read it.
To Reproduce Steps to reproduce the behavior:
- Open a document with long lines or wide content (e.g., a table or long paragraph)
- Switch to preview mode
- Resize the window to a narrow/portrait width
Expected behavior Text should wrap automatically to fit the window width, or at minimum, horizontal scrolling should be supported so all content remains accessible.
Screenshots
Device
- OS: Windows 10
- Version 19045.6466
- App Version v2.6.4
Additional context Text overflows to the right and is clipped. No word wrap occurs, and no horizontal scroll bar is available. Content beyond the right edge cannot be viewed.
Looks like the same issue as reported in https://github.com/alecdotdev/Markpad/issues/95.
It's happening with me as well
Maintainer suggestion: this looks like the same underlying preview overflow issue as #95, with this issue focusing on narrow-window accessibility.
Maybe #95 can stay as the main tracking issue and this one can be closed as a duplicate? The concrete fix probably belongs there: normal paragraphs should wrap, while wide content like code blocks and tables should get horizontal scrolling instead of being clipped.
Fixed in v2.6.5. The preview body gained overflow-wrap: anywhere, code blocks wrap instead of overflowing (white-space: pre-wrap; word-break: break-word), and wide tables scroll horizontally in their own container rather than being clipped.