From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/datasets/documents/detail/completed/new-child-segment.tsx | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/app/components/datasets/documents/detail/completed/new-child-segment.tsx b/app/components/datasets/documents/detail/completed/new-child-segment.tsx
index e1d5701..55766d8 100644
--- a/app/components/datasets/documents/detail/completed/new-child-segment.tsx
+++ b/app/components/datasets/documents/detail/completed/new-child-segment.tsx
@@ -53,10 +53,10 @@
}, [parentMode])
const CustomButton = <>
- <Divider type='vertical' className='mx-1 h-3 bg-divider-regular' />
+ <Divider type='vertical' className='h-3 mx-1 bg-divider-regular' />
<button
type='button'
- className='system-xs-semibold text-text-accent'
+ className='text-text-accent system-xs-semibold'
onClick={() => {
clearTimeout(refreshTimer.current)
viewNewlyAddedChildChunk?.()
@@ -68,6 +68,7 @@
const handleCancel = (actionType: 'esc' | 'add' = 'esc') => {
if (actionType === 'esc' || !addAnother)
onCancel()
+ setContent('')
}
const { mutateAsync: addChildSegment } = useAddChildSegment()
@@ -113,14 +114,14 @@
}, [content.length])
return (
- <div className={'flex h-full flex-col'}>
+ <div className={'flex flex-col h-full'}>
<div className={classNames('flex items-center justify-between', fullScreen ? 'py-3 pr-4 pl-6 border border-divider-subtle' : 'pt-3 pr-3 pl-4')}>
<div className='flex flex-col'>
- <div className='system-xl-semibold text-text-primary'>{t('datasetDocuments.segment.addChildChunk')}</div>
+ <div className='text-text-primary system-xl-semibold'>{t('datasetDocuments.segment.addChildChunk')}</div>
<div className='flex items-center gap-x-2'>
<SegmentIndexTag label={t('datasetDocuments.segment.newChildChunk') as string} />
<Dot />
- <span className='system-xs-medium text-text-tertiary'>{wordCountText}</span>
+ <span className='text-text-tertiary system-xs-medium'>{wordCountText}</span>
</div>
</div>
<div className='flex items-center'>
@@ -134,14 +135,14 @@
actionType='add'
isChildChunk={true}
/>
- <Divider type='vertical' className='ml-4 mr-2 h-3.5 bg-divider-regular' />
+ <Divider type='vertical' className='h-3.5 bg-divider-regular ml-4 mr-2' />
</>
)}
- <div className='mr-1 flex h-8 w-8 cursor-pointer items-center justify-center p-1.5' onClick={toggleFullScreen}>
- <RiExpandDiagonalLine className='h-4 w-4 text-text-tertiary' />
+ <div className='w-8 h-8 flex justify-center items-center p-1.5 cursor-pointer mr-1' onClick={toggleFullScreen}>
+ <RiExpandDiagonalLine className='w-4 h-4 text-text-tertiary' />
</div>
- <div className='flex h-8 w-8 cursor-pointer items-center justify-center p-1.5' onClick={handleCancel.bind(null, 'esc')}>
- <RiCloseLine className='h-4 w-4 text-text-tertiary' />
+ <div className='w-8 h-8 flex justify-center items-center p-1.5 cursor-pointer' onClick={handleCancel.bind(null, 'esc')}>
+ <RiCloseLine className='w-4 h-4 text-text-tertiary' />
</div>
</div>
</div>
@@ -156,7 +157,7 @@
</div>
</div>
{!fullScreen && (
- <div className='flex items-center justify-between border-t-[1px] border-t-divider-subtle p-4 pt-3'>
+ <div className='flex items-center justify-between p-4 pt-3 border-t-[1px] border-t-divider-subtle'>
<AddAnother isChecked={addAnother} onCheck={() => setAddAnother(!addAnother)} />
<ActionButtons
handleCancel={handleCancel.bind(null, 'esc')}
--
Gitblit v1.8.0