mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-21 21:12:24 +00:00
perf: 群聊信息预览显示发言人昵称
This commit is contained in:
parent
1de42f5c72
commit
64e53b3dd0
@ -57,7 +57,14 @@
|
|||||||
<Icon v-if="dialog.type == 'user' && lastMsgReadDone(dialog.last_msg)" :type="lastMsgReadDone(dialog.last_msg)"/>
|
<Icon v-if="dialog.type == 'user' && lastMsgReadDone(dialog.last_msg)" :type="lastMsgReadDone(dialog.last_msg)"/>
|
||||||
<em v-if="dialog.last_at">{{$A.formatTime(dialog.last_at)}}</em>
|
<em v-if="dialog.last_at">{{$A.formatTime(dialog.last_at)}}</em>
|
||||||
</div>
|
</div>
|
||||||
<div class="dialog-text no-dark-mode">{{formatLastMsg(dialog.last_msg)}}</div>
|
<div class="dialog-text no-dark-mode">
|
||||||
|
<UserAvatar
|
||||||
|
v-if="dialog.type=='group' && dialog.last_msg.userid != userId"
|
||||||
|
:userid="dialog.last_msg.userid"
|
||||||
|
:show-name="true"
|
||||||
|
:show-icon="false"/>
|
||||||
|
<div class="last-text">{{formatLastMsg(dialog.last_msg)}}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Badge class="dialog-num" :count="$A.getDialogUnread(dialog)"/>
|
<Badge class="dialog-num" :count="$A.getDialogUnread(dialog)"/>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
23
resources/assets/sass/pages/page-messenger.scss
vendored
23
resources/assets/sass/pages/page-messenger.scss
vendored
@ -166,9 +166,26 @@
|
|||||||
color: #999999;
|
color: #999999;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
white-space: nowrap;
|
display: flex;
|
||||||
overflow: hidden;
|
align-items: center;
|
||||||
text-overflow: ellipsis;
|
.common-avatar {
|
||||||
|
padding-right: 4px;
|
||||||
|
margin-right: 4px;
|
||||||
|
position: relative;
|
||||||
|
&:after {
|
||||||
|
content: ":";
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.last-text {
|
||||||
|
flex: 1;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.dialog-num {
|
.dialog-num {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user