Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

Commit f5754ba

Browse files
committed
fix(container): fixed scroll of main page
1 parent cc325cc commit f5754ba

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

src/app/app.component.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
<header>
33
<app-toolbar (navToggle)="sidenav.toggle()"></app-toolbar>
44
</header>
5-
<main class="app-content">
6-
<mat-sidenav-container>
7-
<mat-sidenav #sidenav role="navigation">
8-
<mat-nav-list (click)="sidenav.toggle()">
9-
<a *ngFor="let menu of menus" mat-list-item routerLinkActive="active" [routerLinkActiveOptions]="menu.options" [routerLink]="menu.link">
5+
<mat-sidenav-container>
6+
<mat-sidenav #sidenav role="navigation">
7+
<mat-nav-list (click)="sidenav.toggle()">
8+
<a *ngFor="let menu of menus" mat-list-item routerLinkActive="active" [routerLinkActiveOptions]="menu.options" [routerLink]="menu.link">
109
{{menu.title}}
1110
</a>
12-
</mat-nav-list>
13-
</mat-sidenav>
14-
<router-outlet></router-outlet>
15-
</mat-sidenav-container>
16-
</main>
17-
</div>
11+
</mat-nav-list>
12+
</mat-sidenav>
13+
<router-outlet></router-outlet>
14+
</mat-sidenav-container>
15+
</div>

src/app/app.component.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111
}
1212
}
1313

14-
.app-content {
15-
min-height: 100%;
16-
overflow: auto;
17-
display: flex;
18-
flex-direction: column;
19-
}
20-
2114
mat-sidenav-container {
2215
flex: 1 1 auto;
2316
width: 100%;

0 commit comments

Comments
 (0)