mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-23 14:24:14 -04:00
center the top nav buttons when window is small
This commit is contained in:
parent
62d5eb4bc3
commit
53e2c5cc24
1 changed files with 5 additions and 1 deletions
|
@ -305,8 +305,12 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// add spacer to center the nav buttons when window is small
|
||||||
|
Region rightSpacer = new Region();
|
||||||
|
HBox.setHgrow(rightSpacer, Priority.ALWAYS);
|
||||||
|
|
||||||
HBox primaryNav = new HBox(getLogoPane(), marketButton, getNavigationSpacer(), buyButton, getNavigationSpacer(),
|
HBox primaryNav = new HBox(getLogoPane(), marketButton, getNavigationSpacer(), buyButton, getNavigationSpacer(),
|
||||||
sellButton, getNavigationSpacer(), portfolioButtonWithBadge, getNavigationSpacer(), fundsButton);
|
sellButton, getNavigationSpacer(), portfolioButtonWithBadge, getNavigationSpacer(), fundsButton, rightSpacer);
|
||||||
|
|
||||||
primaryNav.setAlignment(Pos.CENTER_LEFT);
|
primaryNav.setAlignment(Pos.CENTER_LEFT);
|
||||||
primaryNav.getStyleClass().add("nav-primary");
|
primaryNav.getStyleClass().add("nav-primary");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue