Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions frontend/src/views/chat/ExecutionDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import icon_database_colorful from '@/assets/svg/icon_database_colorful.svg'
import icon_alarm_clock_colorful from '@/assets/svg/icon_alarm-clock_colorful.svg'
import { chatApi, type ChatLogHistory } from '@/api/chat.ts'
import { useI18n } from 'vue-i18n'
import { isMobile } from '@/utils/utils'
import { debounce } from 'lodash-es'
import LogTerm from './execution-component/LogTerm.vue'
import LogSQLSample from './execution-component/LogSQLSample.vue'
Expand Down Expand Up @@ -39,6 +40,10 @@ function getLogList(recordId: any) {
}

const setDrawerSize = debounce(() => {
if (isMobile()) {
drawerSize.value = window.innerWidth + 'px'
return
}
drawerSize.value =
window.innerWidth < 500 ? '460px' : `${Math.max(window.innerWidth * 0.5, 600)}px`
}, 500)
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/views/chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
:class="{
'no-sidebar': isCompletePage && !chatListSideBarShow,
pad16: !isCompletePage,
pad8: isPhone,
}"
>
<template v-for="(message, _index) in computedMessages" :key="_index">
Expand Down Expand Up @@ -1209,6 +1210,9 @@ onMounted(() => {
&.no-sidebar {
padding-left: 96px;
}
&.pad8 {
padding: 8px;
}

&.pad16 {
padding-left: 16px;
Expand Down
Loading