Single-word text wrapping

Member
Joined
Feb 23, 2018
Messages
19
This is more of a mobile thing, but it crops up on desktop, too. There are frequently times when a comment will include a massive string of letters without any spaces (eg, nooooo, random keyboard mashing meant to represent anger, URLs, etc.). While screen width is usually large enough on desktop that this doesn't present a problem, on mobile it causes longer paragraph comments to stretch way off the screen. While scrolling to the side is a workaround, it's also kind of tedious to do on a smaller mobile screen. If possible, it would be a nice QoL change to force text-wrapping at a specific character length rather than by spaces.

Examples of issue:

https://mangadex.org/thread/74974/6 (mobile)

https://mangadex.org/thread/82105/2 (both)
 
Dex-chan lover
Joined
Nov 20, 2018
Messages
5,156
@leolab

I don't want here to object to the underlying idea, but to note a difficulty.

The number of characters that fit in the width of a screen varies across devices, because different devices have different numbers of pixels in their widths, and different numbers of of pixels in character widths (this last being a matter both of font size and of which font is selected). And there are a few characters that are quite wide, so that if someone dropped in a string of, say, eighty of them, it would screw-up things, though eighty characters might otherwise not seem like a great width.

Perhaps the thing to do would be to continue with ordinary word wrapping, yet at the same time to set a maximum width for a comment, as a percentage of the screen or of a visual container, so that the comment went into a scroll-box if it exceeded that width.
 

Users who are viewing this thread

Top