Skip to content

Commit b30de1a

Browse files
committed
fix(Advanced Application): In the Assistant's floating window mode at normal size, the execution consumption window is not fully displayed.
1 parent 8a1a9e0 commit b30de1a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/src/views/chat/ExecutionDetails.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ import { useI18n } from 'vue-i18n'
1010
const { t } = useI18n()
1111
const logHistory = ref<ChatLogHistory>({})
1212
const dialogFormVisible = ref(false)
13+
const drawerSize = ref('600px')
1314
1415
function getLogList(recordId: any) {
16+
drawerSize.value = window.innerWidth < 500 ? '460px' : '600px'
1517
chatApi.get_chart_log_history(recordId).then((res) => {
1618
logHistory.value = chatApi.toChatLogHistory(res) as ChatLogHistory
1719
dialogFormVisible.value = true
@@ -29,7 +31,7 @@ defineExpose({
2931
:title="t('parameter.execution_details')"
3032
destroy-on-close
3133
modal-class="execution-details"
32-
size="600px"
34+
:size="drawerSize"
3335
>
3436
<div class="title">{{ t('parameter.overview') }}</div>
3537
<div class="overview">
@@ -89,7 +91,7 @@ defineExpose({
8991
justify-content: space-between;
9092
margin-bottom: 24px;
9193
.item {
92-
width: 268px;
94+
width: calc(50% - 8px);
9395
height: 86px;
9496
border-radius: 12px;
9597
border: 1px solid #dee0e3;
@@ -106,7 +108,7 @@ defineExpose({
106108
font-weight: 400;
107109
font-size: 14px;
108110
line-height: 22px;
109-
width: 180px;
111+
width: 64%;
110112
}
111113
112114
.value {
@@ -122,7 +124,7 @@ defineExpose({
122124
123125
.list {
124126
.list-item {
125-
width: 552px;
127+
width: 100%;
126128
height: 54px;
127129
border-radius: 12px;
128130
border: 1px solid #dee0e3;

0 commit comments

Comments
 (0)