Skip to content

Commit e538466

Browse files
committed
fix: bug fix
1 parent df4dc16 commit e538466

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

frontend/src/views/chat/chat-block/ChartBlock.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import icon_window_mini_outlined from '@/assets/svg/icon_window-mini_outlined.sv
1818
import icon_copy_outlined from '@/assets/svg/icon_copy_outlined.svg'
1919
import { useI18n } from 'vue-i18n'
2020
import SQLComponent from '@/views/chat/component/SQLComponent.vue'
21+
import { useAssistantStore } from '@/stores/assistant'
2122
2223
const props = withDefaults(
2324
defineProps<{
@@ -50,6 +51,8 @@ const dataObject = computed<{
5051
}
5152
return {}
5253
})
54+
const assistantStore = useAssistantStore()
55+
const isAssistant = computed(() => assistantStore.getAssistant)
5356
5457
const data = computed(() => {
5558
if (props.isPredict) {
@@ -321,7 +324,7 @@ function copy() {
321324

322325
<el-drawer
323326
v-model="sqlShow"
324-
size="600"
327+
:size="isAssistant ? '100%' : '600px'"
325328
:title="t('chat.show_sql')"
326329
direction="rtl"
327330
body-class="chart-sql-drawer-body"

frontend/src/views/embedded/index.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,10 @@ onBeforeUnmount(() => {
191191
}
192192
}
193193
</style>
194+
195+
<style lang="less">
196+
.ed-overlay-dialog,
197+
.ed-drawer {
198+
margin-top: 50px;
199+
}
200+
</style>

0 commit comments

Comments
 (0)