From 7bd1dfbdaa9b3a750c7c5759284960c44ce3141f Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com> Date: Wed, 12 Mar 2025 11:22:52 +0800 Subject: [PATCH] fix: Optimization style and fit setting avatar save prompt error(#2523) * fix: Setting avatar save prompt error(#2523) * perf: optimization style --- ui/src/components/ai-chat/KnowledgeSource.vue | 5 ++++- .../ai-chat/component/answer-content/index.vue | 10 +++++----- ui/src/styles/element-plus.scss | 9 +++++---- ui/src/views/hit-test/index.vue | 6 +++++- ui/src/workflow/nodes/variable-assign-node/index.vue | 3 ++- 5 files changed, 21 insertions(+), 12 deletions(-) diff --git a/ui/src/components/ai-chat/KnowledgeSource.vue b/ui/src/components/ai-chat/KnowledgeSource.vue index 4e527ae6d..486e58ffb 100644 --- a/ui/src/components/ai-chat/KnowledgeSource.vue +++ b/ui/src/components/ai-chat/KnowledgeSource.vue @@ -37,7 +37,10 @@ -
+
{{ $t('chat.KnowledgeSource.consume') }}: {{ data?.message_tokens + data?.answer_tokens }} diff --git a/ui/src/components/ai-chat/component/answer-content/index.vue b/ui/src/components/ai-chat/component/answer-content/index.vue index 07307496b..6a7bd28db 100644 --- a/ui/src/components/ai-chat/component/answer-content/index.vue +++ b/ui/src/components/ai-chat/component/answer-content/index.vue @@ -6,7 +6,7 @@
- + - +

{{ $t('chat.tip.stopAnswer') }} - - +

+

{{ $t('chat.tip.answerLoading') }} - +

diff --git a/ui/src/styles/element-plus.scss b/ui/src/styles/element-plus.scss index b3dab279a..9a24e8654 100644 --- a/ui/src/styles/element-plus.scss +++ b/ui/src/styles/element-plus.scss @@ -7,6 +7,7 @@ --el-color-info: #8f959e !important; --el-disabled-bg-color: #eff0f1 !important; --el-text-color-primary: #1f2329; + --el-font-line-height-primary: 22px; } .el-button { @@ -134,7 +135,7 @@ } .el-message-box__headerbtn { right: 10px; - top: 15px; + top: 16px; .el-message-box__close { font-size: 20px; } @@ -267,7 +268,7 @@ } .el-select__wrapper.is-disabled { - background-color: var(--el-disabled-bg-color)!important; + background-color: var(--el-disabled-bg-color) !important; } .el-select__placeholder { font-weight: 400; @@ -350,7 +351,7 @@ } .radio_content .is-disabled { - background-color: var(--el-disabled-bg-color)!important;; + background-color: var(--el-disabled-bg-color) !important; } .el-input-number.is-controls-right .el-input__wrapper { @@ -421,4 +422,4 @@ .el-table .el-popper { max-width: 500px !important; -} \ No newline at end of file +} diff --git a/ui/src/views/hit-test/index.vue b/ui/src/views/hit-test/index.vue index e1aebd572..b1707e2d0 100644 --- a/ui/src/views/hit-test/index.vue +++ b/ui/src/views/hit-test/index.vue @@ -24,10 +24,14 @@ v-if="first" :image="emptyImg" :description="$t('views.application.hitTest.emptyMessage1')" + style="padding-top: 160px" + :image-size="125" /> {}) } .hit-test-height { - height: calc(var(--app-main-height) - 170px); + height: calc(var(--app-main-height) - 135px); } .document-card { height: 210px; diff --git a/ui/src/workflow/nodes/variable-assign-node/index.vue b/ui/src/workflow/nodes/variable-assign-node/index.vue index 975624a47..a786a9d77 100644 --- a/ui/src/workflow/nodes/variable-assign-node/index.vue +++ b/ui/src/workflow/nodes/variable-assign-node/index.vue @@ -121,7 +121,8 @@ title="JSON" v-model="item.value" :style="{ - height: '100px' + height: '100px', + width: '155px' }" @submitDialog="(val: string) => (form_data.variable_list[index].value = val)" />