feat: change sidebar mode

This commit is contained in:
4gray committed 2020-06-14 12:42:13 +02:00
1 parent d28a79ed02
commit 22f2bc1df9
2 files changed
+12 -10

No files matched your search

@@ -11,10 +11,11 @@
right: 0;
}
.mat-sidenav-content {
.mat-drawer-content {
background: #000;
}
.mat-sidenav {
.mat-drawer {
width: 400px;
min-width: 400px;
}
@@ -1,10 +1,11 @@
<mat-sidenav-container
<mat-drawer-container
class="main-container"
(backdropClick)="close()">
<!-- sidebar content -->
<mat-sidenav
#sidenav
<mat-drawer
#drawer
mode="side"
(keydown.escape)="close()"
disableClose>
<ng-container *ngIf="channels$ | async as channels">
@@ -12,14 +13,14 @@
[channelList]="channels"
(changeChannel)="playChannel($event)"></app-channel-list-container>
</ng-container>
</mat-sidenav>
</mat-drawer>
<mat-sidenav-content>
<mat-drawer-content>
<!-- toolbar with drawer icon -->
<mat-toolbar color="primary">
<button
mat-icon-button
(click)="sidenav.toggle()">
(click)="drawer.toggle()">
<mat-icon>menu</mat-icon>
</button>
myIPTV
@@ -32,5 +33,5 @@
controls="true"
muted="muted"></video>
</mat-sidenav-content>
</mat-sidenav-container>
</mat-drawer-content>
</mat-drawer-container>