File tree Expand file tree Collapse file tree
HMCL/src/main/java/org/jackhuang/hmcl/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public ToolbarListPageSkin(P skinnable) {
5555 toolbar .setAlignment (Pos .CENTER_LEFT );
5656 toolbar .setPickOnBounds (false );
5757 toolbar .getChildren ().setAll (toolbarButtons );
58+ FXUtils .setOverflowHidden (toolbar , 8 );
5859 root .getContent ().add (toolbar );
5960 }
6061
Original file line number Diff line number Diff line change 3434import javafx .scene .control .SkinBase ;
3535import javafx .scene .input .KeyCode ;
3636import javafx .scene .input .KeyEvent ;
37- import javafx .scene .layout .*;
37+ import javafx .scene .layout .HBox ;
38+ import javafx .scene .layout .Priority ;
39+ import javafx .scene .layout .StackPane ;
40+ import javafx .scene .layout .VBox ;
3841import javafx .util .Duration ;
3942import org .jackhuang .hmcl .setting .Profile ;
4043import org .jackhuang .hmcl .setting .Profiles ;
@@ -241,6 +244,8 @@ public GameListSkin(GameList skinnable) {
241244
242245 toolbarPane .setContent (toolbarNormal , ContainerAnimations .FADE );
243246
247+ FXUtils .setOverflowHidden (toolbarPane , 8 );
248+
244249 root .getContent ().add (toolbarPane );
245250 }
246251
Original file line number Diff line number Diff line change @@ -197,6 +197,9 @@ final class ModListPageSkin extends SkinBase<ModListPage> {
197197 else
198198 changeToolbar (toolbarSelecting );
199199 });
200+
201+ FXUtils .setOverflowHidden (toolbarPane , 8 );
202+
200203 root .getContent ().add (toolbarPane );
201204
202205 // Clear selection when pressing ESC
You can’t perform that action at this time.
0 commit comments