decentraland / sdk

PM repository for SDK
Apache License 2.0
4 stars 4 forks source link

Multiline text in UI #1040

Open nearnshaw opened 9 months ago

nearnshaw commented 9 months ago

Currently it's not possible to make a text adjust its number of lines to the size of its parents. You have to explicitly add line breaks with \n

The whole point of using flexbox was to have the UI adjust dynamically to different screens and contents. Without this feature, any text with more than 6 words is a pain to handle. It also makes it more complicated to do libraries that handle any prompt or NPC text.

In SDK6 this was not something creators needed to think about, the text just adapted to the size of the container.