Skip to content

[Bug]: Tile view for custom games does not lay out right side correctly, hiding text and moving text outside of the tile #3458

@lL1l1

Description

@lL1l1

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:
Image

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"
Image

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.

Image

Changing the name to various lengths shows the bug:
"123456789 123456789" (2 copies)
Image

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

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

7 copies
8 copies
Image

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions