Rework of side nav menu of statistics #42

Merged
hardi merged 1 commits from task/1.8.0-menu-rework into release/v1.8.0 2018-07-17 08:01:08 +02:00
2 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,7 @@
<button mat-icon-button <button mat-icon-button
(click)="toggleSidebar()" (click)="toggleSidebar()"
*ngIf="router.url.includes('/stats')" *ngIf="router.url.includes('/stats')"
style="background: linear-gradient(-90deg, #dadada,transparent);"> style="background: linear-gradient(-90deg, #e8e5e5,#ffffff);margin-left: -12px;">
<mat-icon svgIcon="chevron-left" *ngIf="sidebarOpen"> <mat-icon svgIcon="chevron-left" *ngIf="sidebarOpen">
</mat-icon> </mat-icon>
<mat-icon svgIcon="chevron-right" *ngIf="!sidebarOpen"> <mat-icon svgIcon="chevron-right" *ngIf="!sidebarOpen">

View File

@ -73,6 +73,9 @@ export class AppComponent implements OnInit {
toggleSidebar() { toggleSidebar() {
this.sidebarOpen = !this.sidebarOpen; this.sidebarOpen = !this.sidebarOpen;
setTimeout(_ => {
window.dispatchEvent(new Event('resize'));
});
} }
ngOnInit() { ngOnInit() {