Fixed drawer
This commit is contained in:
parent
731466077b
commit
f066843b9c
@ -20,12 +20,12 @@ export class AppComponent {
|
||||
constructor(public batteryService: BatteryService, router: Router, route: ActivatedRoute, breakpointObserver: BreakpointObserver) {
|
||||
router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => {
|
||||
this.hide = !!route.root.firstChild.snapshot.data.hide;
|
||||
if(this.hide) this.open = false;
|
||||
this.open = !this.hide && !this.mobile;
|
||||
});
|
||||
|
||||
breakpointObserver.observe([Breakpoints.Handset]).subscribe(result => {
|
||||
this.mobile = result.matches;
|
||||
this.open = !this.hide && !this.mobile;
|
||||
this.open = !this.mobile;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
<div>
|
||||
<div class="d-flex flex-column flex-md-row justify-content-center align-items-center" style="flex-grow: 1;">
|
||||
<i [class]="'wi wi-fw wi-' + weatherService.icon" style="font-size: 6rem"></i>
|
||||
<div class="ml-0 ml-md-3">
|
||||
@ -25,3 +26,4 @@
|
||||
</div>
|
||||
</div>
|
||||
<mat-divider></mat-divider>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user