Better player name wrapping in player list

This commit is contained in:
Anuken
2026-09-15 12:13:12 -04:00
parent c801b625ac
commit b3be63437e
@@ -132,8 +132,7 @@ public class PlayerListFragment{
});
button.add(iconTable).size(h);
button.labelWrap("[#" + user.color().toString().toUpperCase() + "]" + user.name()).style(Styles.outlineLabel).width(170f).pad(10);
button.add().grow();
button.add("[#" + user.color().toString().toUpperCase() + "]" + user.name()).style(Styles.outlineLabel).growX().wrap(true).pad(10);
button.background(Tex.underline);
@@ -249,7 +248,7 @@ public class PlayerListFragment{
.size(h);
}
content.add(button).width(350f).height(h + 14);
content.add(button).width(mobile ? 350f : 470f).height(h + 14);
content.row();
}