【功能完善】商城: 客服会话列表的样式优化

This commit is contained in:
puhui999 2024-11-24 11:35:40 +08:00
parent 7895d184e8
commit 90c71804e2

View File

@ -1,5 +1,5 @@
<template>
<el-aside class="kefu p-5px h-100%" width="260px">
<el-aside class="kefu pt-5px h-100%" width="260px">
<div class="color-[#999] font-bold my-10px">
会话记录({{ kefuStore.getConversationList.length }})
</div>
@ -7,7 +7,7 @@
v-for="item in kefuStore.getConversationList"
:key="item.id"
:class="{ active: item.id === activeConversationId, pinned: item.adminPinned }"
class="kefu-conversation flex items-center"
class="kefu-conversation px-10px flex items-center"
@click="openRightMessage(item)"
@contextmenu.prevent="rightClick($event as PointerEvent, item)"
>
@ -210,26 +210,24 @@ onBeforeUnmount(() => {
.username {
min-width: 0;
max-width: 60%;
}
.last-message {
font-size: 13px;
}
.last-message,
.username {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}
.last-message {
font-size: 13px;
width: 200px;
overflow: hidden; //
white-space: nowrap; //
text-overflow: ellipsis; //
}
}
.active,
.pinned {
.active {
background-color: rgba(128, 128, 128, 0.5); //
border-radius: 8px;
}
.right-menu-ul {