Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Fix scrolling for now.
Browse files Browse the repository at this point in the history
This does not look quite as ugly and allows me to observe scroll events.
It still won't hide the browser chrome on mobile, but it will do while
I am waiting for angular/components#802.
  • Loading branch information
jp-hoehmann committed Aug 1, 2017
1 parent e4f388a commit 748ced5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import {AppUxService} from './app-ux.service';
<md-icon>close</md-icon>
</button>
</md-toolbar>
<div></div>
</md-sidenav>
<md-toolbar>
<button
Expand Down Expand Up @@ -127,6 +128,9 @@ export class AppComponent {
*/
title = 'Aldo';

/*
* Whether the dark-theme is active.
*/
dark = false;

@HostListener('window:resize')
Expand Down
12 changes: 10 additions & 2 deletions src/stylesheets/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ md-input-container {
width: 100%;
}

md-sidenav-container {
height: 100vh;
md-sidenav-container > * {
display: flex!important;
flex-direction: column;
height: 100vh!important;
}

md-sidenav-container > * > *:last-child {
overflow: auto;
}

md-spinner {
Expand Down Expand Up @@ -81,6 +87,8 @@ snack-bar-container {

.app-content {
margin: auto;
margin-top: 0;
width: 100%;
max-width: 1600px;
}

Expand Down

0 comments on commit 748ced5

Please sign in to comment.