Fix: UI Placeholder and Hint Optimization (#13416)

### What problem does this PR solve?

Fix: UI Placeholder and Hint Optimization

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-03-05 18:13:19 +08:00
committed by GitHub
parent 35fc5edc93
commit 8b534c895e
12 changed files with 56 additions and 13 deletions

View File

@ -60,7 +60,7 @@ export const CrossLanguageFormField = ({
<FormControl>
<MultiSelect
options={crossLanguageOptions}
placeholder={t('fileManager.pleaseSelect')}
placeholder={t('chat.crossLanguagePlaceholder')}
maxCount={100}
{...field}
onValueChange={field.onChange}

View File

@ -127,7 +127,7 @@ export function KnowledgeBaseFormField({
onValueChange={(value) => {
handleDatasetSelectChange(value, field.onChange);
}}
placeholder={t('chat.knowledgeBasesMessage')}
placeholder={t('chat.knowledgeBasesPlaceholder')}
variant="inverted"
maxCount={100}
defaultValue={field.value}

View File

@ -227,7 +227,10 @@ const RaptorFormFields = ({
render={({ field }) => (
<FormItem className=" items-center space-y-0 ">
<div className="flex items-center">
<FormLabel className="text-sm whitespace-wrap w-1/4">
<FormLabel
className="text-sm whitespace-wrap w-1/4"
tooltip={t('randomSeedTip')}
>
{t('randomSeed')}
</FormLabel>
<div className="w-3/4">

View File

@ -39,6 +39,7 @@ function RerankFormField() {
<FormControl>
<SelectWithSearch
allowClear
placeholder={t('rerankPlaceholder')}
{...field}
options={options}
></SelectWithSearch>