mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-27 02:42:00 +08:00
Adjust styles to match the design system (#11118)
### What problem does this PR solve? - Modify and adjust styles (CSS vars, components) to match the design system - Adjust file and directory structure of admin UI ### Type of change - [x] Refactoring
This commit is contained in:
@@ -18,12 +18,7 @@ import {
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Switch } from '@/components/ui/switch';
|
||||
import {
|
||||
Tabs,
|
||||
TabsContent,
|
||||
TabsList,
|
||||
TabsTrigger,
|
||||
} from '@/components/ui/tabs-underlined';
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
|
||||
import { listResources } from '@/services/admin-service';
|
||||
import { PERMISSION_TYPES, formMergeDefaultValues } from '../utils';
|
||||
@@ -106,12 +101,12 @@ export const CreateRoleForm = ({
|
||||
<Label>{t('admin.resources')}</Label>
|
||||
|
||||
<Tabs defaultValue={resourceTypes?.[0]} className="w-full mt-2">
|
||||
<TabsList className="p-0 mb-2 gap-4 bg-transparent">
|
||||
<TabsList className="p-0 mb-2 gap-4 bg-transparent justify-start">
|
||||
{resourceTypes?.map((resourceType) => (
|
||||
<TabsTrigger
|
||||
key={resourceType}
|
||||
value={resourceType}
|
||||
className="text-text-secondary !border-border-button data-[state=active]:bg-bg-card data-[state=active]:text-text-primary"
|
||||
className="text-text-secondary border-0.5 border-border-button data-[state=active]:bg-bg-card"
|
||||
>
|
||||
{t(`admin.resourceType.${resourceType.toLowerCase()}`)}
|
||||
</TabsTrigger>
|
||||
|
||||
@@ -153,7 +153,11 @@ export const CreateUserForm = ({
|
||||
<SelectItem key={role.id} value={role.role_name}>
|
||||
{role.role_name}
|
||||
</SelectItem>
|
||||
))}
|
||||
)) ?? (
|
||||
<div className="text-text-secondary px-2 py-6 text-sm text-center">
|
||||
{t('common.noData')}
|
||||
</div>
|
||||
)}
|
||||
</SelectGroup>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
|
||||
Reference in New Issue
Block a user