Skip to content

Commit a817cfc

Browse files
committed
feat: change chat list sidebar css
1 parent d7d28b7 commit a817cfc

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

frontend/src/views/chat/index.vue

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@
1616
/>
1717
</el-aside>
1818
<div v-if="!isAssistant && !chatListSideBarShow" class="hidden-sidebar-btn">
19-
<el-popover :width="280" placement="bottom-start" popper-style="padding: 0; height: 654px">
19+
<el-popover
20+
:width="280"
21+
placement="bottom-start"
22+
popper-style="padding: 0;
23+
height: 654px;
24+
border: 1px solid rgba(222, 224, 227, 1);
25+
border-radius: 6px;
26+
"
27+
>
2028
<template #reference>
2129
<el-button link type="primary" class="icon-btn" @click="showSideBar">
2230
<el-icon>
@@ -47,7 +55,10 @@
4755
</el-tooltip>
4856
</div>
4957
<el-container :loading="loading">
50-
<el-main class="chat-record-list">
58+
<el-main
59+
class="chat-record-list"
60+
:class="{ 'hide-sidebar': !isAssistant && !chatListSideBarShow }"
61+
>
5162
<div v-if="computedMessages.length == 0" class="welcome-content-block">
5263
<div class="welcome-content">
5364
<div class="logo">SQLBot</div>
@@ -823,6 +834,8 @@ defineExpose({
823834
height: 100%;
824835
position: relative;
825836
837+
border-radius: 12px;
838+
826839
.hidden-sidebar-btn {
827840
z-index: 1;
828841
position: absolute;
@@ -856,6 +869,11 @@ defineExpose({
856869
.chat-record-list {
857870
padding: 0 0 20px 0;
858871
background: rgba(255, 255, 255, 1);
872+
border-radius: 0 12px 12px 0;
873+
874+
&.hide-sidebar {
875+
border-radius: 12px;
876+
}
859877
}
860878
861879
.chat-footer {

0 commit comments

Comments
 (0)