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

View File

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