Rework of side nav menu of statistics #40

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

View File

@ -98,7 +98,7 @@
<button mat-icon-button
(click)="toggleSidebar()"
*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>
<mat-icon svgIcon="chevron-right" *ngIf="!sidebarOpen">

View File

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