Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
90c71804
authored
Nov 24, 2024
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能完善】商城: 客服会话列表的样式优化
parent
7895d184
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
src/views/mall/promotion/kefu/components/KeFuConversationList.vue
+11
-13
No files found.
src/views/mall/promotion/kefu/components/KeFuConversationList.vue
View file @
90c71804
<
template
>
<
template
>
<el-aside
class=
"kefu p-5px h-100%"
width=
"260px"
>
<el-aside
class=
"kefu p
t
-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 @@
...
@@ -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(() => {
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment