sidenav of messenger is added

This commit is contained in:
병준 박 2019-10-08 18:12:58 +09:00
parent 08c5d2825a
commit fad0787266
2 changed files with 20 additions and 8 deletions

View File

@ -2,14 +2,21 @@
<div class="left-side">
<app-layout-messenger-left-side></app-layout-messenger-left-side>
</div>
<div class="contents">
<app-layout-messenger-intro
*ngIf="!(this.selectedChat$ | async)"
></app-layout-messenger-intro>
<app-layout-messenger-messages
*ngIf="!!(this.selectedChat$ | async)"
></app-layout-messenger-messages>
</div>
<mat-drawer-container class="contents" autosize>
<div class="messages">
<app-layout-messenger-intro
(click)="drawer.toggle()"
*ngIf="!(this.selectedChat$ | async)"
></app-layout-messenger-intro>
<app-layout-messenger-messages
*ngIf="!!(this.selectedChat$ | async)"
></app-layout-messenger-messages>
</div>
<mat-drawer #drawer mode="side" position="end">
<p>sidenav</p>
</mat-drawer>
</mat-drawer-container>
<div class="right-side">
<app-layout-messenger-right-side></app-layout-messenger-right-side>
</div>

View File

@ -10,6 +10,11 @@
float: left;
width: calc(100% - 360px);
height: 100%;
.messages {
width: 100%;
height: 100%;
}
}
.right-side {
float: left;