-
-
Notifications
You must be signed in to change notification settings - Fork 140
Description
Describe the Bug
Game names are allowed to take up 3 lines of text, but when the name becomes long enough to move on to the next line, the last word gets replaced with an ellipsis instead of being moved onto the next line.
For the titles:
"SpamLandWar mode TMRebalance v10. No air/arty. New units,eco"
"SpamLandWar mode TMRebalance v10. No air/arty. New units, eco ddddddddddd"
both display like this:

If you have a very long title, the mods text moves outside of the tile:
"All welcome SPAM LAND WAR modded game TMRebalance v5. New units,balance,eco. No air/arty/sat/. Long T3 Tech. 2v2 3v3 4v4"

Log file or Error Message
This has no relevant logs.
Reproduce the bug
Create a lobby, and click the game name in the top left to change it. The lobby's displayed name is updated shortly after.
Changing the name to various lengths shows the bug:
"123456789 123456789" (2 copies)

"123456789 123456789 123456789" (3 copies)
"123456789 123456789 123456789 123456789" (4 copies, same result)

"123456789 123456789 123456789 123456789 123456789" (5 copies)
"123456789 123456789 123456789 123456789 123456789 123456789" (6 copies, same result)

9+ copies the mods text clips out of the box but no additional title text is displayed

Expected Behavior
The title should use all 3 lines to display text before omitting text entirely. Mainly this means that new words should only be replaced by an ellipsis if the text is using 3 lines and cannot fit the new word behind the right margin. A small improvement would be to only replace with an ellipsis the part of the word right before it would go outside the margin.
Screenshots
No response
Additional context
This report originates from this forum post.
Which Operating System are you using?
Windows
