Skip to content

Commit 097cabb

Browse files
committed
style: collapse button for chatHistoryDrawer
1 parent 1ebfc58 commit 097cabb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ui/src/views/chat/embed/component/ChatHistoryDrawer.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
:size="280"
99
style="--el-drawer-padding-primary: 0"
1010
>
11+
<el-button
12+
class="collapse cursor"
13+
circle
14+
@click="show = !show"
15+
>
16+
<el-icon>
17+
<component :is="!show ? 'ArrowRightBold' : 'ArrowLeftBold'" />
18+
</el-icon>
19+
</el-button>
1120
<HistoryPanel
1221
:application-detail="applicationDetail"
1322
:chat-log-data="chatLogData"
@@ -142,8 +151,20 @@ const logout = () => {
142151

143152
<style lang="scss" scoped>
144153
:deep(.chat-history-drawer) {
154+
overflow: visible;
155+
145156
.el-drawer__body {
146157
padding: 0 !important;
158+
159+
.collapse {
160+
position: absolute;
161+
top: 20px;
162+
right: -13px;
163+
box-shadow: 0px 5px 10px 0px rgba(31, 35, 41, 0.1);
164+
z-index: 1;
165+
width: 24px;
166+
height: 24px;
167+
}
147168
}
148169
}
149170
</style>

0 commit comments

Comments
 (0)