Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Preview mode does not wrap text and lacks horizontal scrolling, making content inaccessible in narrow windows

Open iDTer opened this issue 7 months ago • 4 comments

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:

  1. Open a document with long lines or wide content (e.g., a table or long paragraph)
  2. Switch to preview mode
  3. 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

Image Image

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.

iDTer avatar Apr 13 '26 23:04 iDTer

Looks like the same issue as reported in https://github.com/alecdotdev/Markpad/issues/95.

gv-RobinHeymans avatar Apr 19 '26 17:04 gv-RobinHeymans

It's happening with me as well

luanfernandes avatar Apr 26 '26 00:04 luanfernandes

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.

wargoblin avatar May 06 '26 06:05 wargoblin

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.

PathGao avatar Aug 02 '26 21:08 PathGao