Skip to content

Commit

Permalink
feat: change sidebar mode
Browse files Browse the repository at this point in the history
  • Loading branch information
4gray committed Jun 14, 2020
1 parent 0b11500 commit ca9f7a2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
5 changes: 3 additions & 2 deletions src/app/components/video-player/video-player.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
right: 0;
}

.mat-sidenav-content {
.mat-drawer-content {
background: #000;
}

.mat-sidenav {
.mat-drawer {
width: 400px;
min-width: 400px;
}
17 changes: 9 additions & 8 deletions src/app/components/video-player/video-player.component.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
<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">
<app-channel-list-container
[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
Expand All @@ -32,5 +33,5 @@
controls="true"
muted="muted"></video>

</mat-sidenav-content>
</mat-sidenav-container>
</mat-drawer-content>
</mat-drawer-container>

0 comments on commit ca9f7a2

Please sign in to comment.