Posts, a community app by Read.cv

Thread
joe

i have such a niche help request but… has anyone ever worked on chat-bubble text-wrapping? I’m trying to figure out the rules how iMessage wraps text tightly around its bubbles—it’s not just max-width and sometime the second line of a bubble is longer than the first!

 @
Replying to @joeytee

Commenting to sub to this. Someone reveal the secrets please.

joe

I thought maybe the first line’s break point was maybe being used to define max-width for subsequent lines text wrapping, but that still creates large rags!

joe

hmm sharing what @andy posted and adding that I wonder if iMessage is somehow doing this balancer thing with ideal-width and max-width on frames? (I’m just hearing ideal width for the first time as an iOS term) react-wrap-balancer.vercel.app/

React Wrap Balancer
Simple React Component That Makes Titles More Readable