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:
@@ -101,6 +101,9 @@ public class OfflineAccountSkinPane extends StackPane {
|
|||||||
VBox optionPane = new VBox(skinItem, skinOptionPane);
|
VBox optionPane = new VBox(skinItem, skinOptionPane);
|
||||||
pane.setRight(optionPane);
|
pane.setRight(optionPane);
|
||||||
|
|
||||||
|
skinSelector.maxWidthProperty().bind(skinOptionPane.maxWidthProperty().multiply(0.7));
|
||||||
|
capeSelector.maxWidthProperty().bind(skinOptionPane.maxWidthProperty().multiply(0.7));
|
||||||
|
|
||||||
layout.setBody(pane);
|
layout.setBody(pane);
|
||||||
|
|
||||||
cslApiField.setPromptText(i18n("account.skin.type.csl_api.location.hint"));
|
cslApiField.setPromptText(i18n("account.skin.type.csl_api.location.hint"));
|
||||||
|
|||||||
Reference in New Issue
Block a user