From b3be63437e7ba6b2e9116790542de29bd286b6ad Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 15 Sep 2026 12:13:12 -0400 Subject: [PATCH] Better player name wrapping in player list --- core/src/mindustry/ui/fragments/PlayerListFragment.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/mindustry/ui/fragments/PlayerListFragment.java b/core/src/mindustry/ui/fragments/PlayerListFragment.java index 30379f944e..65dbc91870 100644 --- a/core/src/mindustry/ui/fragments/PlayerListFragment.java +++ b/core/src/mindustry/ui/fragments/PlayerListFragment.java @@ -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(); }