Merge pull request #5087 from ripcurlx/improve-responsiveness

Keep main navigation items left aligned
This commit is contained in:
sqrrm 2021-01-19 11:12:03 +01:00 committed by GitHub
commit 71b6b84b43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -658,10 +658,12 @@ tree-table-view:focused {
-fx-padding: 0 11 0 11;
-fx-border-width: 0 1 0 0;
-fx-border-color: -bs-rd-nav-primary-border;
-fx-min-width: 410;
}
.nav-secondary {
-fx-padding: 0 11 0 11;
-fx-min-width: 296;
}
.nav-price-balance {

View file

@ -336,7 +336,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel>
priceAndBalance.setSpacing(9);
priceAndBalance.getStyleClass().add("nav-price-balance");
HBox navPane = new HBox(primaryNav, secondaryNav,
HBox navPane = new HBox(primaryNav, secondaryNav, getNavigationSpacer(),
priceAndBalance) {{
setLeftAnchor(this, 0d);
setRightAnchor(this, 0d);