fix: Optimized popups and the search page (#9297)

### What problem does this PR solve?

fix: Optimized popups and the search page #3221 
- Added a new PortalModal component
- Refactored the Modal component, adding show and hide methods to
support popups
- Updated the search page, adding a new query function and optimizing
the search card style
- Localized, added search-related translations

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-08-07 11:07:04 +08:00
committed by GitHub
parent 4fc9e42e74
commit 7c719f8365
11 changed files with 254 additions and 98 deletions

View File

@ -98,13 +98,13 @@ export default function DatasetSettings() {
setCurrentTab(val);
}}
>
<TabsList className="grid bg-background grid-cols-2 rounded-none bg-[#161618]">
<TabsList className="grid bg-transparent grid-cols-2 rounded-none text-foreground">
<TabsTrigger
value="generalForm"
className="group bg-transparent p-0 !border-transparent"
>
<div className="flex w-full h-full justify-center items-center bg-[#161618]">
<span className="h-full group-data-[state=active]:border-b-2 border-white ">
<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
</span>
</div>
@ -113,8 +113,8 @@ export default function DatasetSettings() {
value="chunkMethodForm"
className="group bg-transparent p-0 !border-transparent"
>
<div className="flex w-full h-full justify-center items-center bg-[#161618]">
<span className="h-full group-data-[state=active]:border-b-2 border-white ">
<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
</span>
</div>