fix(ui): limit width of FileSelector in offline skin pane (#3623)

make the text around the selector not be covered.

resolves https://github.com/HMCL-dev/HMCL/issues/3296
This commit is contained in:
3gf8jv4dv
2025-02-25 17:58:31 +08:00
committed by GitHub
parent 3389e0a934
commit 2c9549b36b

View File

@@ -101,6 +101,9 @@ public class OfflineAccountSkinPane extends StackPane {
VBox optionPane = new VBox(skinItem, skinOptionPane);
pane.setRight(optionPane);
skinSelector.maxWidthProperty().bind(skinOptionPane.maxWidthProperty().multiply(0.7));
capeSelector.maxWidthProperty().bind(skinOptionPane.maxWidthProperty().multiply(0.7));
layout.setBody(pane);
cslApiField.setPromptText(i18n("account.skin.type.csl_api.location.hint"));