Skip to content

Commit 917ad0a

Browse files
committed
fix(Smart Questioning): The scrollbar in the chat has been optimized to allow for dragging.
1 parent 9decb91 commit 917ad0a

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

frontend/src/views/chat/ChatTokenTime.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ function getLogList() {
4949
margin-left: auto;
5050
display: flex;
5151
align-items: center;
52+
position: relative;
53+
&:hover {
54+
&::after {
55+
content: '';
56+
background: #1f23291a;
57+
border-radius: 6px;
58+
top: 50%;
59+
left: 50%;
60+
transform: translate(-50%, -50%);
61+
width: 84px;
62+
height: 26px;
63+
position: absolute;
64+
}
65+
}
5266
}
5367
}
5468
</style>

frontend/src/views/chat/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,8 @@ onMounted(() => {
11751175
border-radius: 0 12px 12px 0;
11761176
11771177
.no-horizontal.ed-scrollbar {
1178+
position: relative;
1179+
z-index: 10;
11781180
.ed-scrollbar__bar.is-horizontal {
11791181
display: none;
11801182
}
@@ -1195,8 +1197,6 @@ onMounted(() => {
11951197
align-items: center;
11961198
padding-left: 56px;
11971199
padding-right: 56px;
1198-
position: relative;
1199-
z-index: 10;
12001200
12011201
&.no-sidebar {
12021202
padding-left: 96px;

0 commit comments

Comments
 (0)