mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user