않읽은 메시지, 대화 초대된 참여자 수정

This commit is contained in:
khk 2019-12-31 16:59:13 +09:00
parent 27f0cbef13
commit e132f6d787
5 changed files with 80 additions and 77 deletions

View File

@ -3,6 +3,7 @@
align-content: center; align-content: center;
flex-flow: row; flex-flow: row;
align-items: flex-end; align-items: flex-end;
height: 20px;
.line { .line {
height: 1px; height: 1px;
background-color: #cccccc; background-color: #cccccc;

View File

@ -1 +1 @@
<div>{{ contents }}</div> <div class="guest">{{ contents }}</div>

View File

@ -0,0 +1,13 @@
.guest {
display: flex;
align-content: center;
flex-flow: row;
width: 100%;
background-color: rgba(0, 0, 0, 0.4);
padding: 4px 20px;
color: #ffffff;
border-radius: 100px;
justify-content: center;
justify-items: center;
margin: 10px 0 20px;
}

View File

@ -1,26 +1,9 @@
<!--<div class="chat-messages" #scrollMe>
<div class="message-row" *ngIf="eventRemain && messages.length > 0">
<button mat-button (click)="onClickMore($event)">
이전 대화 보기
<span
*ngIf="
!!roomInfo &&
!!firstEventSeq &&
roomInfo.lastReadEventSeq < firstEventSeq
"
>
안읽은 메시지가 더 있습니다.({{
firstEventSeq - (roomInfo.lastReadEventSeq + 1)
}})개
</span>
</button>
</div>-->
<div class="chat-messages" #scrollMe> <div class="chat-messages" #scrollMe>
<div <div
*ngIf="eventRemain && messages.length > 0" *ngIf="eventRemain && messages.length > 0"
class="message-row view-previous bg-accent-dark" class="message-row view-previous"
> >
<button mat-button (click)="onClickMore($event)"> <button mat-button (click)="onClickMore($event)" class="bg-accent-dark">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="20" width="20"
@ -36,25 +19,25 @@
<polyline class="st0" points="12.9,10 10,7.1 7.1,10 " /> <polyline class="st0" points="12.9,10 10,7.1 7.1,10 " />
<line class="st0" x1="10" y1="12.9" x2="10" y2="7.1" /> <line class="st0" x1="10" y1="12.9" x2="10" y2="7.1" />
</svg> </svg>
이전 대화 보기 <span>이전 대화 보기</span>
<div
class="unRead-count"
*ngIf="
!!roomInfo &&
!!firstEventSeq &&
roomInfo.lastReadEventSeq < firstEventSeq
"
>
<span class="line"></span>
<span class="count">
안읽은 메시지가
<span class="text-warn-color"
>({{ firstEventSeq - (roomInfo.lastReadEventSeq + 1) }})</span
>개 더 있습니다.
</span>
<span class="line"></span>
</div>
</button> </button>
<div
class="unRead-count"
*ngIf="
!!roomInfo &&
!!firstEventSeq &&
roomInfo.lastReadEventSeq < firstEventSeq
"
>
<span class="line"></span>
<span class="count">
안읽은 메시지가
<span class="text-warn-color"
>({{ firstEventSeq - (roomInfo.lastReadEventSeq + 1) }})</span
>개 더 있습니다.
</span>
<span class="line"></span>
</div>
<span class="line"></span> <span class="line"></span>
</div> </div>
@ -131,14 +114,14 @@
*ngIf="getUserProfile(message.senderSeq) != ''" *ngIf="getUserProfile(message.senderSeq) != ''"
class="profile-img thumbnail-mask" class="profile-img thumbnail-mask"
> >
<img <img
class="avatar" class="avatar"
ucapImage ucapImage
[base]="profileImageRoot" [base]="profileImageRoot"
[path]="getUserProfile(message.senderSeq)" [path]="getUserProfile(message.senderSeq)"
[default]="'assets/images/img_nophoto_50.png'" [default]="'assets/images/img_nophoto_50.png'"
(click)="onClickOpenProfile($event, getUerInfo(message.senderSeq))" (click)="onClickOpenProfile($event, getUerInfo(message.senderSeq))"
/> />
<!-- <ucap-ui-imaage <!-- <ucap-ui-imaage
[style]="'width: 50px; height: 50px;'" [style]="'width: 50px; height: 50px;'"
[imageClass]="'avatar'" [imageClass]="'avatar'"

View File

@ -15,6 +15,7 @@ $meBox-bg: #ffffff;
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
padding: 10px; padding: 10px;
margin: 10px 0;*/ margin: 10px 0;*/
width: 100%;
} }
.message-row { .message-row {
@ -176,43 +177,48 @@ $meBox-bg: #ffffff;
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-word; word-break: break-word;
} }
.view-previous { ::ng-deep .view-previous {
display: flex; display: flex;
align-content: center; flex-flow: column;
flex-flow: row; //background-color: rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.4);
padding: 4px 10px;
color: #ffffff; color: #ffffff;
border-radius: 100px;
justify-content: center; justify-content: center;
justify-items: center;
margin: 10px 0 20px; margin: 10px 0 20px;
button { button {
height: 24px; height: 100%;
line-height: 24px;
width: 100%; width: 100%;
svg { border-radius: 100px;
stroke: #ffffff; .mat-button-wrapper {
align-self: center; justify-items: center;
svg {
stroke: #ffffff;
align-self: center;
margin-right: 4px;
}
}
}
.unRead-count {
display: flex;
justify-items: self-end;
flex-flow: row;
align-items: flex-end;
height: 20px;
margin: 10px 0;
.line {
height: 1px;
background-color: #cccccc;
width: 40%;
flex: 1 1 auto;
margin-bottom: 10px;
display: inline-flex;
}
.count {
width: 260px;
font-size: 13px;
text-align: center;
font-weight: 600;
color: #333333;
} }
} }
} }
.unRead-count {
display: flex;
justify-items: self-end;
flex-flow: row;
align-items: flex-end;
.line {
height: 1px;
background-color: #cccccc;
width: 40%;
flex: 1 1 auto;
margin-bottom: 10px;
display: inline-flex;
}
.count {
width: 260px;
font-size: 13px;
text-align: center;
font-weight: 600;
}
}