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/datasets/documents/detail/completed/child-segment-detail.tsx |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/app/components/datasets/documents/detail/completed/child-segment-detail.tsx b/app/components/datasets/documents/detail/completed/child-segment-detail.tsx
index 81afed9..085bfdd 100644
--- a/app/components/datasets/documents/detail/completed/child-segment-detail.tsx
+++ b/app/components/datasets/documents/detail/completed/child-segment-detail.tsx
@@ -2,7 +2,6 @@
 import { useTranslation } from 'react-i18next'
 import {
   RiCloseLine,
-  RiCollapseDiagonalLine,
   RiExpandDiagonalLine,
 } from '@remixicon/react'
 import ActionButtons from './common/action-buttons'
@@ -51,6 +50,7 @@
 
   const handleCancel = () => {
     onCancel()
+    setContent(childChunkInfo?.content || '')
   }
 
   const handleSave = () => {
@@ -73,16 +73,16 @@
   }, [childChunkInfo?.updated_at])
 
   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.editChildChunk')}</div>
+          <div className='text-text-primary system-xl-semibold'>{t('datasetDocuments.segment.editChildChunk')}</div>
           <div className='flex items-center gap-x-2'>
             <SegmentIndexTag positionId={childChunkInfo?.position || ''} labelPrefix={t('datasetDocuments.segment.childChunk') as string} />
             <Dot />
-            <span className='system-xs-medium text-text-tertiary'>{wordCountText}</span>
+            <span className='text-text-tertiary system-xs-medium'>{wordCountText}</span>
             <Dot />
-            <span className='system-xs-medium text-text-tertiary'>
+            <span className='text-text-tertiary system-xs-medium'>
               {EditTimeText}
             </span>
           </div>
@@ -96,14 +96,14 @@
                 loading={loading}
                 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}>
-            {fullScreen ? <RiCollapseDiagonalLine className='h-4 w-4 text-text-tertiary' /> : <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={onCancel}>
-            <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={onCancel}>
+            <RiCloseLine className='w-4 h-4 text-text-tertiary' />
           </div>
         </div>
       </div>
@@ -118,7 +118,7 @@
         </div>
       </div>
       {!fullScreen && (
-        <div className='flex items-center justify-end border-t-[1px] border-t-divider-subtle p-4 pt-3'>
+        <div className='flex items-center justify-end p-4 pt-3 border-t-[1px] border-t-divider-subtle'>
           <ActionButtons
             handleCancel={handleCancel}
             handleSave={handleSave}

--
Gitblit v1.8.0