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/create/notion-page-preview/index.tsx | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/app/components/datasets/create/notion-page-preview/index.tsx b/app/components/datasets/create/notion-page-preview/index.tsx
index 5b56036..f658f21 100644
--- a/app/components/datasets/create/notion-page-preview/index.tsx
+++ b/app/components/datasets/create/notion-page-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 { NotionPage } from '@/models/common'
@@ -47,23 +46,23 @@
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.pagePreview')}</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)}>
<NotionIcon
- className='mr-1 shrink-0'
+ className='shrink-0 mr-1'
type='page'
src={currentPage?.page_icon}
/>
{currentPage?.page_name}
</div>
</div>
- <div className={cn(s.previewContent, 'body-md-regular')}>
- {loading && <Loading type='area' />}
+ <div className={cn(s.previewContent)}>
+ {loading && <div className={cn(s.loading)} />}
{!loading && (
<div className={cn(s.fileContent, 'body-md-regular')}>{previewContent}</div>
)}
--
Gitblit v1.8.0