调整样式

This commit is contained in:
2022-02-17 15:27:52 +08:00
parent b904c4449e
commit 1c5d6d9f4c
5 changed files with 63 additions and 55 deletions

View File

@@ -2,9 +2,7 @@
<view class="group--chat">
<list class="body" :show-scrollbar="false">
<cell class="cell" v-for="(item, index) in messages" :key="index">
<view class="cell-system" v-if="item.senderUserId === '__system__'">
<text class="text">{{ item.content.message }}</text>
</view>
<view class="cell-system" v-if="item.senderUserId === '__system__'"> <text class="text">{{ item.content.message }}</text> </view>
<view v-else :class="['cell-item', item.messageDirection == 1 ? 'right' : 'left']">
<u-avatar class="avatar" @click="toUser(item)" size="36" shape="square" :src="contact(item.senderUserId).portraitUrl" />
<view class="msg">
@@ -168,8 +166,8 @@
flex: 1;
.body {
flex: 1;
flex: 1;
.cell {
padding: 10rpx 30rpx;