Skip to content

Commit 90c7180

Browse files
author
puhui999
committed
【功能完善】商城: 客服会话列表的样式优化
1 parent 7895d18 commit 90c7180

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/views/mall/promotion/kefu/components/KeFuConversationList.vue

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
2-
<el-aside class="kefu p-5px h-100%" width="260px">
2+
<el-aside class="kefu pt-5px h-100%" width="260px">
33
<div class="color-[#999] font-bold my-10px">
44
会话记录({{ kefuStore.getConversationList.length }})
55
</div>
66
<div
77
v-for="item in kefuStore.getConversationList"
88
:key="item.id"
99
:class="{ active: item.id === activeConversationId, pinned: item.adminPinned }"
10-
class="kefu-conversation flex items-center"
10+
class="kefu-conversation px-10px flex items-center"
1111
@click="openRightMessage(item)"
1212
@contextmenu.prevent="rightClick($event as PointerEvent, item)"
1313
>
@@ -210,26 +210,24 @@ onBeforeUnmount(() => {
210210
.username {
211211
min-width: 0;
212212
max-width: 60%;
213+
}
214+
215+
.last-message {
216+
font-size: 13px;
217+
}
218+
219+
.last-message,
220+
.username {
213221
overflow: hidden;
214222
text-overflow: ellipsis;
215223
display: -webkit-box;
216224
-webkit-box-orient: vertical;
217225
-webkit-line-clamp: 1;
218226
}
219-
220-
.last-message {
221-
font-size: 13px;
222-
width: 200px;
223-
overflow: hidden; // 隐藏超出的文本
224-
white-space: nowrap; // 禁止换行
225-
text-overflow: ellipsis; // 添加省略号
226-
}
227227
}
228228
229-
.active,
230-
.pinned {
229+
.active {
231230
background-color: rgba(128, 128, 128, 0.5); // 透明色,暗黑模式下也能体现
232-
border-radius: 8px;
233231
}
234232
235233
.right-menu-ul {

0 commit comments

Comments
 (0)