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/annotation/edit-annotation-modal/edit-item/index.tsx | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx b/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx index f68ec4a..208da90 100644 --- a/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx +++ b/app/components/app/annotation/edit-annotation-modal/edit-item/index.tsx @@ -20,11 +20,11 @@ } export const EditTitle: FC<{ className?: string; title: string }> = ({ className, title }) => ( - <div className={cn(className, 'system-xs-medium flex h-[18px] items-center text-text-tertiary')}> - <RiEditFill className='mr-1 h-3.5 w-3.5' /> + <div className={cn(className, 'flex items-center h-[18px] system-xs-medium text-text-tertiary')}> + <RiEditFill className='mr-1 w-3.5 h-3.5' /> <div>{title}</div> <div - className='ml-2 h-[1px] grow' + className='ml-2 grow h-[1px]' style={{ background: 'linear-gradient(90deg, rgba(0, 0, 0, 0.05) -1.65%, rgba(0, 0, 0, 0.00) 100%)', }} @@ -40,7 +40,7 @@ const { t } = useTranslation() const [newContent, setNewContent] = useState('') const showNewContent = newContent && newContent !== content - const avatar = type === EditItemType.Query ? <User className='h-6 w-6' /> : <Robot className='h-6 w-6' /> + const avatar = type === EditItemType.Query ? <User className='w-6 h-6' /> : <Robot className='w-6 h-6' /> const name = type === EditItemType.Query ? t('appAnnotation.editModal.queryName') : t('appAnnotation.editModal.answerName') const editTitle = type === EditItemType.Query ? t('appAnnotation.editModal.yourQuery') : t('appAnnotation.editModal.yourAnswer') const placeholder = type === EditItemType.Query ? t('appAnnotation.editModal.queryPlaceholder') : t('appAnnotation.editModal.answerPlaceholder') @@ -58,11 +58,11 @@ return ( <div className='flex' onClick={e => e.stopPropagation()}> - <div className='mr-3 shrink-0'> + <div className='shrink-0 mr-3'> {avatar} </div> <div className='grow'> - <div className='system-xs-semibold mb-1 text-text-primary'>{name}</div> + <div className='mb-1 system-xs-semibold text-text-primary'>{name}</div> <div className='system-sm-regular text-text-primary'>{content}</div> {!isEdit ? ( @@ -70,34 +70,34 @@ {showNewContent && ( <div className='mt-3'> <EditTitle title={editTitle} /> - <div className='system-sm-regular mt-1 text-text-primary'>{newContent}</div> + <div className='mt-1 system-sm-regular text-text-primary'>{newContent}</div> </div> )} <div className='mt-2 flex items-center'> {!readonly && ( <div - className='system-xs-medium flex cursor-pointer items-center space-x-1 text-text-accent' + className='flex items-center space-x-1 system-xs-medium text-text-accent cursor-pointer' onClick={() => { setIsEdit(true) }} > - <RiEditLine className='mr-1 h-3.5 w-3.5' /> + <RiEditLine className='mr-1 w-3.5 h-3.5' /> <div>{t('common.operation.edit')}</div> </div> )} {showNewContent && ( - <div className='system-xs-medium ml-2 flex items-center text-text-tertiary'> + <div className='ml-2 flex items-center system-xs-medium text-text-tertiary'> <div className='mr-2'>路</div> <div - className='flex cursor-pointer items-center space-x-1' + className='flex items-center space-x-1 cursor-pointer' onClick={() => { setNewContent(content) onSave(content) }} > - <div className='h-3.5 w-3.5'> - <RiDeleteBinLine className='h-3.5 w-3.5' /> + <div className='w-3.5 h-3.5'> + <RiDeleteBinLine className='w-3.5 h-3.5' /> </div> <div>{t('common.operation.delete')}</div> </div> -- Gitblit v1.8.0