mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-12-09 03:26:09 +00:00
Navbar toggle button should be right aligned if right navbar selected
Navbar classes actually moved to the navbar from fuse-sidebar Search icon color
This commit is contained in:
@@ -6,13 +6,12 @@
|
||||
|
||||
<div fxFlex="1 0 auto" fxLayout="row" fxLayoutAlign="start center">
|
||||
|
||||
<button mat-icon-button class="toggle-button-navbar"
|
||||
*ngIf="!noNav"
|
||||
(click)="toggleSidebarOpen('navbar')" fxHide.gt-md>
|
||||
<mat-icon>menu</mat-icon>
|
||||
<button mat-icon-button class="navbar-toggle-button"
|
||||
*ngIf="!hiddenNavbar && !rightNavbar" (click)="toggleSidebarOpen('navbar')" fxHide.gt-md>
|
||||
<mat-icon class="secondary-text">menu</mat-icon>
|
||||
</button>
|
||||
|
||||
<div class="toolbar-separator" fxHide.gt-md></div>
|
||||
<div class="toolbar-separator" *ngIf="!hiddenNavbar && !rightNavbar" fxHide.gt-md></div>
|
||||
|
||||
<div fxLayout="row" fxLayoutAlign="start center" *ngIf="horizontalNav">
|
||||
<div class="logo ml-16">
|
||||
@@ -97,6 +96,13 @@
|
||||
<mat-icon class="icon">format_list_bulleted</mat-icon>
|
||||
</button>
|
||||
|
||||
<div class="toolbar-separator" *ngIf="!hiddenNavbar && rightNavbar" fxHide fxShow.gt-xs></div>
|
||||
|
||||
<button mat-icon-button class="navbar-toggle-button"
|
||||
*ngIf="!hiddenNavbar && rightNavbar" (click)="toggleSidebarOpen('navbar')" fxHide.gt-md>
|
||||
<mat-icon class="secondary-text">menu</mat-icon>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.toggle-button-navbar {
|
||||
.navbar-toggle-button {
|
||||
min-width: 56px;
|
||||
height: 56px;
|
||||
}
|
||||
|
||||
@@ -18,9 +18,10 @@ import { navigation } from 'app/navigation/navigation';
|
||||
|
||||
export class ToolbarComponent implements OnInit, OnDestroy
|
||||
{
|
||||
horizontalNav: boolean;
|
||||
horizontalNavbar: boolean;
|
||||
rightNavbar: boolean;
|
||||
hiddenNavbar: boolean;
|
||||
languages: any;
|
||||
noNav: boolean;
|
||||
navigation: any;
|
||||
selectedLanguage: any;
|
||||
showLoadingBar: boolean;
|
||||
@@ -123,8 +124,9 @@ export class ToolbarComponent implements OnInit, OnDestroy
|
||||
this._fuseConfigService.config
|
||||
.pipe(takeUntil(this._unsubscribeAll))
|
||||
.subscribe((settings) => {
|
||||
this.horizontalNav = settings.layout.navbar.position === 'top';
|
||||
this.noNav = settings.layout.navbar.position === 'none';
|
||||
this.horizontalNavbar = settings.layout.navbar.position === 'top';
|
||||
this.rightNavbar = settings.layout.navbar.position === 'right';
|
||||
this.hiddenNavbar = settings.layout.navbar.hidden === true;
|
||||
});
|
||||
|
||||
// Set the selected language from default languages
|
||||
|
||||
Reference in New Issue
Block a user