Skip to content

Commit 7bd1dfb

Browse files
fix: Optimization style and fit setting avatar save prompt error(#2523)
* fix: Setting avatar save prompt error(#2523) * perf: optimization style
1 parent 175a801 commit 7bd1dfb

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
</el-row>
3838
</div>
3939

40-
<div class="border-t color-secondary flex-between mt-12" style="padding-top: 12px">
40+
<div
41+
class="border-t color-secondary flex-between mt-12"
42+
style="padding-top: 12px; padding-bottom: 8px"
43+
>
4144
<div>
4245
<span class="mr-8">
4346
{{ $t('chat.KnowledgeSource.consume') }}: {{ data?.message_tokens + data?.answer_tokens }}

ui/src/components/ai-chat/component/answer-content/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<LogoIcon v-else height="32px" width="32px" />
77
</div>
88
<div class="content" @mouseup="openControl">
9-
<el-card shadow="always" class="mb-8 border-r-8">
9+
<el-card shadow="always" class="mb-8 border-r-8" style="--el-card-padding: 6px 16px">
1010
<MdRenderer
1111
v-if="
1212
(chatRecord.write_ed === undefined || chatRecord.write_ed === true) &&
@@ -27,12 +27,12 @@
2727
:send-message="chatMessage"
2828
></MdRenderer>
2929
</template>
30-
<span v-else-if="chatRecord.is_stop" shadow="always">
30+
<p v-else-if="chatRecord.is_stop" shadow="always" style="margin: 0.5rem 0">
3131
{{ $t('chat.tip.stopAnswer') }}
32-
</span>
33-
<span v-else shadow="always">
32+
</p>
33+
<p v-else shadow="always" style="margin: 0.5rem 0">
3434
{{ $t('chat.tip.answerLoading') }} <span class="dotting"></span>
35-
</span>
35+
</p>
3636
<!-- 知识来源 -->
3737
<div v-if="showSource(chatRecord) && index === chatRecord.answer_text_list.length - 1">
3838
<KnowledgeSource :data="chatRecord" :type="application.type" />

ui/src/styles/element-plus.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--el-color-info: #8f959e !important;
88
--el-disabled-bg-color: #eff0f1 !important;
99
--el-text-color-primary: #1f2329;
10+
--el-font-line-height-primary: 22px;
1011
}
1112

1213
.el-button {
@@ -134,7 +135,7 @@
134135
}
135136
.el-message-box__headerbtn {
136137
right: 10px;
137-
top: 15px;
138+
top: 16px;
138139
.el-message-box__close {
139140
font-size: 20px;
140141
}
@@ -267,7 +268,7 @@
267268
}
268269

269270
.el-select__wrapper.is-disabled {
270-
background-color: var(--el-disabled-bg-color)!important;
271+
background-color: var(--el-disabled-bg-color) !important;
271272
}
272273
.el-select__placeholder {
273274
font-weight: 400;
@@ -350,7 +351,7 @@
350351
}
351352

352353
.radio_content .is-disabled {
353-
background-color: var(--el-disabled-bg-color)!important;;
354+
background-color: var(--el-disabled-bg-color) !important;
354355
}
355356

356357
.el-input-number.is-controls-right .el-input__wrapper {
@@ -421,4 +422,4 @@
421422

422423
.el-table .el-popper {
423424
max-width: 500px !important;
424-
}
425+
}

ui/src/views/hit-test/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@
2424
v-if="first"
2525
:image="emptyImg"
2626
:description="$t('views.application.hitTest.emptyMessage1')"
27+
style="padding-top: 160px"
28+
:image-size="125"
2729
/>
2830
<el-empty
2931
v-else-if="paragraphDetail.length == 0"
3032
:description="$t('views.application.hitTest.emptyMessage2')"
33+
style="padding-top: 160px"
34+
:image-size="125"
3135
/>
3236
<el-row v-else>
3337
<el-col
@@ -385,7 +389,7 @@ onMounted(() => {})
385389
}
386390
387391
.hit-test-height {
388-
height: calc(var(--app-main-height) - 170px);
392+
height: calc(var(--app-main-height) - 135px);
389393
}
390394
.document-card {
391395
height: 210px;

ui/src/workflow/nodes/variable-assign-node/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@
121121
title="JSON"
122122
v-model="item.value"
123123
:style="{
124-
height: '100px'
124+
height: '100px',
125+
width: '155px'
125126
}"
126127
@submitDialog="(val: string) => (form_data.variable_list[index].value = val)"
127128
/>

0 commit comments

Comments
 (0)