From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/app/configuration/config-vision/param-config.tsx | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/components/app/configuration/config-vision/param-config.tsx b/app/components/app/configuration/config-vision/param-config.tsx index 5e4aac6..8c63879 100644 --- a/app/components/app/configuration/config-vision/param-config.tsx +++ b/app/components/app/configuration/config-vision/param-config.tsx @@ -2,15 +2,14 @@ import type { FC } from 'react' import { memo, useState } from 'react' import { useTranslation } from 'react-i18next' -import { RiSettings2Line } from '@remixicon/react' import ParamConfigContent from './param-config-content' -import Button from '@/app/components/base/button' +import cn from '@/utils/classnames' +import { Settings01 } from '@/app/components/base/icons/src/vender/line/general' import { PortalToFollowElem, PortalToFollowElemContent, PortalToFollowElemTrigger, } from '@/app/components/base/portal-to-follow-elem' -import cn from '@/utils/classnames' const ParamsConfig: FC = () => { const { t } = useTranslation() @@ -26,13 +25,13 @@ }} > <PortalToFollowElemTrigger onClick={() => setOpen(v => !v)}> - <Button variant='ghost' size='small' className={cn('')}> - <RiSettings2Line className='h-3.5 w-3.5' /> - <div className='ml-1'>{t('appDebug.voice.settings')}</div> - </Button> + <div className={cn('flex items-center rounded-md h-7 px-3 space-x-1 text-text-tertiary cursor-pointer hover:bg-gray-200', open && 'bg-gray-200')}> + <Settings01 className='w-3.5 h-3.5 ' /> + <div className='ml-1 leading-[18px] text-xs font-medium '>{t('appDebug.voice.settings')}</div> + </div> </PortalToFollowElemTrigger> <PortalToFollowElemContent style={{ zIndex: 50 }}> - <div className='w-80 space-y-3 rounded-lg border-[0.5px] border-components-panel-border bg-components-panel-bg p-4 shadow-lg sm:w-[412px]'> + <div className='w-80 sm:w-[412px] p-4 bg-white rounded-lg border-[0.5px] border-gray-200 shadow-lg space-y-3'> <ParamConfigContent /> </div> </PortalToFollowElemContent> -- Gitblit v1.8.0