mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-02-13 00:55:01 +08:00
【功能完善】商城: 客服会话列表的样式优化
This commit is contained in:
parent
7895d184e8
commit
90c71804e2
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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">
|
<div class="color-[#999] font-bold my-10px">
|
||||||
会话记录({{ kefuStore.getConversationList.length }})
|
会话记录({{ kefuStore.getConversationList.length }})
|
||||||
</div>
|
</div>
|
||||||
@ -7,7 +7,7 @@
|
|||||||
v-for="item in kefuStore.getConversationList"
|
v-for="item in kefuStore.getConversationList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:class="{ active: item.id === activeConversationId, pinned: item.adminPinned }"
|
: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)"
|
@click="openRightMessage(item)"
|
||||||
@contextmenu.prevent="rightClick($event as PointerEvent, item)"
|
@contextmenu.prevent="rightClick($event as PointerEvent, item)"
|
||||||
>
|
>
|
||||||
@ -210,26 +210,24 @@ onBeforeUnmount(() => {
|
|||||||
.username {
|
.username {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
max-width: 60%;
|
max-width: 60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.last-message {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.last-message,
|
||||||
|
.username {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-line-clamp: 1;
|
-webkit-line-clamp: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.last-message {
|
|
||||||
font-size: 13px;
|
|
||||||
width: 200px;
|
|
||||||
overflow: hidden; // 隐藏超出的文本
|
|
||||||
white-space: nowrap; // 禁止换行
|
|
||||||
text-overflow: ellipsis; // 添加省略号
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.active,
|
.active {
|
||||||
.pinned {
|
|
||||||
background-color: rgba(128, 128, 128, 0.5); // 透明色,暗黑模式下也能体现
|
background-color: rgba(128, 128, 128, 0.5); // 透明色,暗黑模式下也能体现
|
||||||
border-radius: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-menu-ul {
|
.right-menu-ul {
|
||||||
|
Loading…
Reference in New Issue
Block a user