Skip to content

Commit 02d6239

Browse files
fix: Quick question in the opening statement, English word breaks.(#3158)
1 parent 8d3b3f8 commit 02d6239

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

ui/src/components/ai-chat/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ const initialApiFormData = ref({})
163163
const isUserInput = computed(
164164
() =>
165165
props.applicationDetails.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')[0]
166-
.properties.user_input_field_list.length > 0
166+
?.properties.user_input_field_list.length > 0
167167
)
168168
const isAPIInput = computed(
169169
() =>
170170
props.type === 'debug-ai-chat' &&
171171
props.applicationDetails.work_flow?.nodes?.filter((v: any) => v.id === 'base-node')[0]
172-
.properties.api_input_field_list.length > 0
172+
?.properties.api_input_field_list.length > 0
173173
)
174174
const showUserInputContent = computed(() => {
175175
return (

ui/src/views/application-workflow/index.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="header border-b flex-between p-12-24">
44
<div class="flex align-center">
55
<back-button @click="back"></back-button>
6-
<h4>{{ detail?.name }}</h4>
6+
<h4 class="ellipsis-1" style="width: 50%" :title="detail?.name">{{ detail?.name }}</h4>
77
<div v-if="showHistory && disablePublic">
88
<el-text type="info" class="ml-16 color-secondary"
99
>{{ $t('views.applicationWorkflow.info.previewVersion') }}
@@ -101,7 +101,7 @@
101101
/>
102102
</div>
103103

104-
<h4>
104+
<h4 class="ellipsis" style="max-width: 270px" :title="detail?.name">
105105
{{ detail?.name || $t('views.application.applicationForm.form.appName.label') }}
106106
</h4>
107107
</div>
@@ -279,7 +279,6 @@ async function publicHandle() {
279279
return
280280
}
281281
applicationApi.putPublishApplication(id as String, obj, loading).then(() => {
282-
283282
application.asyncGetApplicationDetail(id, loading).then((res: any) => {
284283
detail.value.name = res.data.name
285284
MsgSuccess(t('views.applicationWorkflow.tip.publicSuccess'))

ui/src/views/chat/embed/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
/>
2929
</div>
3030

31-
<h4>{{ applicationDetail?.name }}</h4>
31+
<h4 class="ellipsis-1" style="width: 50%" :title="applicationDetail?.name">
32+
{{ applicationDetail?.name }}
33+
</h4>
3234
</div>
3335
</div>
3436
<div>

ui/src/views/chat/mobile/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
/>
2828
</div>
2929

30-
<h4>{{ applicationDetail?.name }}</h4>
30+
<h4 class="ellipsis-1" style="width: 66%" :title="applicationDetail?.name">
31+
{{ applicationDetail?.name }}
32+
</h4>
3133
</div>
3234
</div>
3335
<div>

ui/src/views/chat/pc/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
:size="32"
2828
/>
2929
</div>
30-
<h4>{{ applicationDetail?.name }}</h4>
30+
<h4 class="ellipsis-1" style="width: 66%" :title="applicationDetail?.name">
31+
{{ applicationDetail?.name }}
32+
</h4>
3133
</div>
3234
</div>
3335
<div>

0 commit comments

Comments
 (0)