diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/ModListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/ModListPage.java index 7275091389..02b3cde88e 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/ModListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/ModListPage.java @@ -763,6 +763,9 @@ public final class ModListPage extends ListPageBase i FXUtils.installFastTooltip(restoreButton, i18n("mods.restore")); + // free up space when not visible + restoreButton.managedProperty().bind(restoreButton.visibleProperty()); + HBox actions = new HBox(); actions.setAlignment(Pos.CENTER); actions.getChildren().setAll(restoreButton, revealButton, infoButton, activeSwitch);