Skip to content

Commit 5516c0e

Browse files
committed
fix: bug fix
1 parent caf05aa commit 5516c0e

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

frontend/src/views/chat/index.vue

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
:class="{ 'assistant-popover-sidebar': isAssistant }"
2222
>
2323
<el-popover
24-
:visible="isAssistant ? floatPopoverVisible : null"
2524
:width="280"
2625
placement="bottom-start"
2726
:popper-style="{ ...defaultFloatPopoverStyle }"
@@ -48,6 +47,31 @@
4847
@on-click-side-bar-btn="hideSideBar"
4948
/>
5049
</el-popover>
50+
51+
<el-drawer
52+
v-model="floatPopoverVisible"
53+
:with-header="false"
54+
direction="ltr"
55+
size="278"
56+
modal-class="assistant-popover_sidebar"
57+
:before-close="hideSideBar"
58+
>
59+
<ChatListContainer
60+
ref="floatPopoverRef"
61+
v-model:chat-list="chatList"
62+
v-model:current-chat-id="currentChatId"
63+
v-model:current-chat="currentChat"
64+
v-model:loading="loading"
65+
:in-popover="false"
66+
@go-empty="goEmpty"
67+
@on-chat-created="onChatCreated"
68+
@on-click-history="onClickHistory"
69+
@on-chat-deleted="onChatDeleted"
70+
@on-chat-renamed="onChatRenamed"
71+
@on-click-side-bar-btn="hideSideBar"
72+
/>
73+
</el-drawer>
74+
5175
<el-tooltip effect="dark" :content="t('qa.new_chat')" placement="bottom">
5276
<el-button link type="primary" class="icon-btn" @click="createNewChatSimple">
5377
<el-icon>
@@ -1092,3 +1116,15 @@ onMounted(() => {
10921116
}
10931117
}
10941118
</style>
1119+
1120+
<style lang="less">
1121+
.assistant-popover_sidebar {
1122+
.ed-drawer {
1123+
height: 100% !important;
1124+
margin-top: 0 !important;
1125+
}
1126+
.ed-drawer__body {
1127+
padding: 0;
1128+
}
1129+
}
1130+
</style>

0 commit comments

Comments
 (0)