perf: 群聊显示发件人昵称

This commit is contained in:
kuaifan 2022-04-13 13:55:23 +08:00
parent fd40ae6b67
commit e3583df260
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,9 @@
<template> <template>
<div :class="`dialog-view ${msgData.type}`" :data-id="msgData.id"> <div :class="`dialog-view ${msgData.type}`" :data-id="msgData.id">
<!--昵称-->
<div v-if="dialogType === 'group'" class="dialog-username">
<UserAvatar :userid="msgData.userid" :show-icon="false" :show-name="true" :tooltip-disabled="true"/>
</div>
<div class="dialog-head"> <div class="dialog-head">
<!--详情--> <!--详情-->
@ -45,7 +49,7 @@
<div v-if="msgData.created_at" class="dialog-foot"> <div v-if="msgData.created_at" class="dialog-foot">
<div class="time" :title="msgData.created_at">{{$A.formatTime(msgData.created_at)}}</div> <div class="time" :title="msgData.created_at">{{$A.formatTime(msgData.created_at)}}</div>
<EPopover <EPopover
v-if="msgData.send > 1 || dialogType == 'group'" v-if="msgData.send > 1 || dialogType === 'group'"
v-model="popperShow" v-model="popperShow"
ref="percent" ref="percent"
class="percent" class="percent"

View File

@ -164,7 +164,7 @@
> li { > li {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: flex-end; align-items: flex-start;
list-style: none; list-style: none;
margin-bottom: 16px; margin-bottom: 16px;
@ -199,6 +199,11 @@
} }
} }
.dialog-username {
margin-bottom: 6px;
opacity: 0.8;
}
.dialog-head { .dialog-head {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;