-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The scrolling finally works! fix #103
- Loading branch information
1 parent
00d5027
commit db10c97
Showing
10 changed files
with
170 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
"cSpell.words": [ | ||
"AGPL", | ||
"Booter", | ||
"ZXing", | ||
"postgresql", | ||
"prestart", | ||
"sessionstorage" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
<mat-sidenav-container class="sidenav"> | ||
<!-- The main content (not the sidenav) --> | ||
<mat-sidenav-content> | ||
<!-- Navigation toolbar --> | ||
<mat-toolbar color="primary" class=""> | ||
<!-- Sidenav toggle button --> | ||
<button mat-icon-button (click)="sidenav.toggle()" color="basic"> | ||
<!-- Burger icon --> | ||
<i class="material-icons">menu</i> | ||
</button> | ||
<!-- Navigation bar heading --> | ||
{{ title }} | ||
</mat-toolbar> | ||
<br /> | ||
<div class="wrap"> | ||
<!-- Navigation toolbar --> | ||
<mat-toolbar color="primary" class="toolbar"> | ||
<!-- Sidenav toggle button --> | ||
<button mat-icon-button (click)="sidenav.toggle()" color="basic"> | ||
<!-- Burger icon --> | ||
<mat-icon>menu</mat-icon> | ||
</button> | ||
<!-- Navigation bar heading --> | ||
{{ title }} | ||
</mat-toolbar> | ||
|
||
<!-- Add a bit of space around the edges --> | ||
<div class="defaultMargin"> | ||
<!-- Main app content --> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</mat-sidenav-content> | ||
<mat-sidenav-container class="sidenav-container"> | ||
<!-- The main content (not the sidenav) --> | ||
<mat-sidenav-content> | ||
<!-- Add a bit of space around the edges --> | ||
<div class="defaultMargin"> | ||
<!-- Main app content --> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</mat-sidenav-content> | ||
|
||
<!-- The sidenav content --> | ||
<mat-sidenav #sidenav mode="side" [(opened)]="sideNavOpened"> | ||
<!-- The SideNav component --> | ||
<app-side-nav></app-side-nav> | ||
</mat-sidenav> | ||
</mat-sidenav-container> | ||
<!-- The sidenav content --> | ||
<mat-sidenav | ||
#sidenav | ||
mode="side" | ||
[(opened)]="sideNavOpened" | ||
class="sidenav-main" | ||
> | ||
<!-- The SideNav component --> | ||
<app-side-nav></app-side-nav> | ||
</mat-sidenav> | ||
</mat-sidenav-container> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
.sidenav { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
.wrap { | ||
// Use the entire page | ||
height: 100%; | ||
|
||
// Put the toolbar above (north of) everything else | ||
display: flex; | ||
|
||
// Orient vertically (don't put the toolbar next to the rest) | ||
flex-direction: column; | ||
} | ||
|
||
// The stuff below (south of) the toolbar | ||
.sidenav-container { | ||
// Use the entire page | ||
height: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
frontend/src/app/components/main-nav/main-nav.component.html
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
frontend/src/app/components/main-nav/main-nav.component.scss
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
frontend/src/app/components/main-nav/main-nav.component.spec.ts
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
frontend/src/app/components/main-nav/main-nav.component.ts
This file was deleted.
Oops, something went wrong.
127 changes: 122 additions & 5 deletions
127
frontend/src/app/components/side-nav/side-nav.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,122 @@ | ||
<!-- Welcome page --> | ||
<button mat-raised-button routerLink="/welcome" color="basic"> | ||
<!-- Home icon --> | ||
<i class="material-icons">home</i> Home | ||
</button> | ||
<mat-nav-list class="mat-typography"> | ||
<a mat-list-item routerLink="/welcome"> | ||
<mat-icon>home</mat-icon> | ||
Home | ||
</a> | ||
|
||
<a mat-list-item routerLink="/login"> | ||
<mat-icon>vpn_key</mat-icon> | ||
Login | ||
</a> | ||
|
||
<a mat-list-item routerLink="/inventories"> | ||
<mat-icon>home</mat-icon> | ||
Inventories | ||
</a> | ||
|
||
<a mat-list-item routerLink="/events"> | ||
<mat-icon>blur_on</mat-icon> | ||
Events | ||
</a> | ||
|
||
<a mat-list-item routerLink="/scan"> | ||
<mat-icon>camera</mat-icon> | ||
Scan | ||
</a> | ||
|
||
<!-- Filler content for testing --> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
<a mat-list-item>Lorem ipsum</a> | ||
</mat-nav-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,9 +46,6 @@ | |
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
} | ||
|
||
|