From b8ba39dfae84dc8f1682182286d6c07fb685413d Mon Sep 17 00:00:00 2001 From: Wood Date: Sat, 4 Jan 2025 11:52:13 +0800 Subject: [PATCH] Bugfix/style and i18n fixes (#12350) --- .../dataset-config/params-config/weighted-score.tsx | 4 ++-- web/app/components/base/chat/chat/question.tsx | 4 ++-- web/app/components/base/markdown.tsx | 4 ++-- web/i18n/en-US/common.ts | 1 + web/i18n/zh-Hans/common.ts | 1 + 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx b/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx index 74d3223c36..87767c2a10 100644 --- a/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx +++ b/web/app/components/app/configuration/dataset-config/params-config/weighted-score.tsx @@ -29,7 +29,7 @@ const WeightedScore = ({ return (
-
+
onChange({ value: [v, (10 - v * 10) / 10] })} trackClassName='weightedScoreSliderTrack' /> -
+
{t('dataset.weightedScore.semantic')} diff --git a/web/app/components/base/chat/chat/question.tsx b/web/app/components/base/chat/chat/question.tsx index 24d997881c..7052c1fb5e 100644 --- a/web/app/components/base/chat/chat/question.tsx +++ b/web/app/components/base/chat/chat/question.tsx @@ -28,8 +28,8 @@ const Question: FC = ({ } = item return ( -
-
+
+
+
- +
) diff --git a/web/i18n/en-US/common.ts b/web/i18n/en-US/common.ts index 0946ba82e1..c116e080b4 100644 --- a/web/i18n/en-US/common.ts +++ b/web/i18n/en-US/common.ts @@ -39,6 +39,7 @@ const translation = { rename: 'Rename', audioSourceUnavailable: 'AudioSource is unavailable', copyImage: 'Copy Image', + imageCopied: 'Image copied', zoomOut: 'Zoom Out', zoomIn: 'Zoom In', openInNewTab: 'Open in new tab', diff --git a/web/i18n/zh-Hans/common.ts b/web/i18n/zh-Hans/common.ts index 232350de44..53c5337cab 100644 --- a/web/i18n/zh-Hans/common.ts +++ b/web/i18n/zh-Hans/common.ts @@ -39,6 +39,7 @@ const translation = { rename: '重命名', audioSourceUnavailable: '音源不可用', copyImage: '复制图片', + imageCopied: '图片已复制', zoomOut: '缩小', zoomIn: '放大', openInNewTab: '在新标签页打开',