优化实例列表,限制宽度防止出现水平滚动条 (#5243)

This commit is contained in:
神奇的赵二 (OrzMiku)
2026-01-19 21:31:25 +08:00
committed by GitHub
parent 370d0ce78b
commit 1e76733564

View File

@@ -82,6 +82,7 @@ public final class GameListCell extends ListCell<GameListItem> {
{
HBox center = new HBox();
root.setCenter(center);
center.setPrefWidth(Region.USE_PREF_SIZE);
center.setSpacing(8);
center.setAlignment(Pos.CENTER_LEFT);