Skip to content

Commit 50f7c5c

Browse files
committed
fix: bug fix
1 parent eab3423 commit 50f7c5c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

frontend/src/views/chat/index.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@
9898
<logo />
9999
</div>
100100
<el-scrollbar v-if="computedMessages.length > 0" ref="chatListRef">
101-
<div class="chat-scroll" :class="{ 'no-sidebar': !isAssistant && !chatListSideBarShow }">
101+
<div
102+
class="chat-scroll"
103+
:class="{ 'no-sidebar': !isAssistant && !chatListSideBarShow, pad16: isAssistant }"
104+
>
102105
<template v-for="(message, _index) in computedMessages" :key="_index">
103106
<ChatRow :current-chat="currentChat" :msg="message" :hide-avatar="message.first_chat">
104107
<RecommendQuestion
@@ -875,6 +878,11 @@ onMounted(() => {
875878
&.no-sidebar {
876879
padding-left: 96px;
877880
}
881+
882+
&.pad16 {
883+
padding-left: 16px;
884+
padding-right: 16px;
885+
}
878886
}
879887
880888
.chat-footer {

frontend/src/views/embedded/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ onBeforeUnmount(() => {
112112

113113
<style lang="less" scoped>
114114
.sqlbot-assistant-container {
115-
height: 100%;
115+
height: 100vh;
116116
width: 100%;
117117
color: rgb(31, 35, 41);
118118
.header {
@@ -170,6 +170,7 @@ onBeforeUnmount(() => {
170170
}
171171
.sqlbot-chat-container {
172172
padding-top: 56px;
173+
height: 100%;
173174
:deep(.ed-aside) {
174175
display: none;
175176
}

0 commit comments

Comments
 (0)