Fix: Optimize dataset page layout and internationalization and default values for multi selection #3221 (#9695)

### What problem does this PR solve?

Fix: Optimize dataset page layout and internationalization and Fix
setting default values for multi selection drop-down boxes #3221

-Adjust the style and layout of each component on the dataset page
-Add and update multilingual translation content

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-08-25 17:29:15 +08:00
committed by GitHub
parent a3aa3f0d36
commit d367c7e226
15 changed files with 99 additions and 39 deletions

View File

@ -1,5 +1,6 @@
import { Button } from '@/components/ui/button';
import { cn } from '@/lib/utils';
import { t } from 'i18next';
import { X } from 'lucide-react';
import { useState } from 'react';
import CategoryPanel from './category-panel';
@ -26,7 +27,7 @@ export default ({
setVisible(!visible);
}}
>
Learn More
{t('knowledgeDetails.learnMore')}
</Button>
</div>
<div

View File

@ -29,7 +29,7 @@ export function ChunkMethodItem() {
<div className="flex items-center">
<FormLabel
tooltip={t('chunkMethodTip')}
className="text-sm text-muted-foreground whitespace-nowrap w-1/4"
className="text-sm text-muted-foreground whitespace-wrap w-1/4"
>
{t('chunkMethod')}
</FormLabel>
@ -69,7 +69,7 @@ export function EmbeddingModelItem() {
<div className="flex items-center">
<FormLabel
tooltip={t('embeddingModelTip')}
className="text-sm text-muted-foreground whitespace-nowrap w-1/4"
className="text-sm text-muted-foreground whitespace-wrap w-1/4"
>
{t('embeddingModel')}
</FormLabel>

View File

@ -107,7 +107,7 @@ export default function DatasetSettings() {
>
<div className="flex w-full h-full justify-center items-center">
<span className="h-full group-data-[state=active]:border-b-2 border-foreground ">
General
{t('knowledgeDetails.general')}
</span>
</div>
</TabsTrigger>
@ -117,7 +117,7 @@ export default function DatasetSettings() {
>
<div className="flex w-full h-full justify-center items-center">
<span className="h-full group-data-[state=active]:border-b-2 border-foreground ">
Chunk Method
{t('knowledgeDetails.chunkMethodTab')}
</span>
</div>
</TabsTrigger>