Merge remote-tracking branch 'origin/main'

This commit is contained in:
wangjiahao
2025-07-28 14:28:58 +08:00
2 changed files with 11 additions and 2 deletions
+9 -1
View File
@@ -98,7 +98,10 @@
<logo />
</div>
<el-scrollbar v-if="computedMessages.length > 0" ref="chatListRef">
<div class="chat-scroll" :class="{ 'no-sidebar': !isAssistant && !chatListSideBarShow }">
<div
class="chat-scroll"
:class="{ 'no-sidebar': !isAssistant && !chatListSideBarShow, pad16: isAssistant }"
>
<template v-for="(message, _index) in computedMessages" :key="_index">
<ChatRow :current-chat="currentChat" :msg="message" :hide-avatar="message.first_chat">
<RecommendQuestion
@@ -875,6 +878,11 @@ onMounted(() => {
&.no-sidebar {
padding-left: 96px;
}
&.pad16 {
padding-left: 16px;
padding-right: 16px;
}
}
.chat-footer {
+2 -1
View File
@@ -112,7 +112,7 @@ onBeforeUnmount(() => {
<style lang="less" scoped>
.sqlbot-assistant-container {
height: 100%;
height: 100vh;
width: 100%;
color: rgb(31, 35, 41);
.header {
@@ -170,6 +170,7 @@ onBeforeUnmount(() => {
}
.sqlbot-chat-container {
padding-top: 56px;
height: 100%;
:deep(.ed-aside) {
display: none;
}