feat: tailwind related improvement (#6085)

This commit is contained in:
Joel
2024-07-09 15:05:40 +08:00
committed by GitHub
parent 7c70eb87bc
commit eff280f3e7
340 changed files with 2117 additions and 417 deletions

View File

@@ -1,9 +1,9 @@
'use client'
import React, { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import cn from 'classnames'
import { XMarkIcon } from '@heroicons/react/20/solid'
import s from './index.module.css'
import cn from '@/utils/classnames'
import type { CustomFile as File } from '@/models/datasets'
import { fetchFilePreview } from '@/service/common'
@@ -26,7 +26,7 @@ const FilePreview = ({
setPreviewContent(res.content)
setLoading(false)
}
catch {}
catch { }
}
const getFileName = (currentFile?: File) => {
@@ -57,7 +57,7 @@ const FilePreview = ({
</div>
</div>
<div className={cn(s.previewContent)}>
{loading && <div className={cn(s.loading)}/>}
{loading && <div className={cn(s.loading)} />}
{!loading && (
<div className={cn(s.fileContent)}>{previewContent}</div>
)}