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/create/file-preview/index.tsx |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/app/components/datasets/create/file-preview/index.tsx b/app/components/datasets/create/file-preview/index.tsx
index 8a88834..cb1f1d6 100644
--- a/app/components/datasets/create/file-preview/index.tsx
+++ b/app/components/datasets/create/file-preview/index.tsx
@@ -2,7 +2,6 @@
 import React, { useEffect, useState } from 'react'
 import { useTranslation } from 'react-i18next'
 import { XMarkIcon } from '@heroicons/react/20/solid'
-import Loading from '@/app/components/base/loading'
 import s from './index.module.css'
 import cn from '@/utils/classnames'
 import type { CustomFile as File } from '@/models/datasets'
@@ -47,18 +46,18 @@
   return (
     <div className={cn(s.filePreview, 'h-full')}>
       <div className={cn(s.previewHeader)}>
-        <div className={cn(s.title, 'title-md-semi-bold')}>
+        <div className={cn(s.title)}>
           <span>{t('datasetCreation.stepOne.filePreview')}</span>
-          <div className='flex h-6 w-6 cursor-pointer items-center justify-center' onClick={hidePreview}>
+          <div className='flex items-center justify-center w-6 h-6 cursor-pointer' onClick={hidePreview}>
             <XMarkIcon className='h-4 w-4'></XMarkIcon>
           </div>
         </div>
-        <div className={cn(s.fileName, 'system-xs-medium')}>
+        <div className={cn(s.fileName)}>
           <span>{getFileName(file)}</span><span className={cn(s.filetype)}>.{file?.extension}</span>
         </div>
       </div>
       <div className={cn(s.previewContent)}>
-        {loading && <Loading type='area' />}
+        {loading && <div className={cn(s.loading)} />}
         {!loading && (
           <div className={cn(s.fileContent, 'body-md-regular')}>{previewContent}</div>
         )}

--
Gitblit v1.8.0