feat: tailwind related improvement (#6085)

This commit is contained in:
Joel 2024-07-09 15:05:40 +08:00 • committed by GitHub
commit eff280f3e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
340 changed files with 2117 additions and 417 deletions

View file

@ -1,12 +1,12 @@
'use client'
import type { FC } from 'react'
import React, { useEffect, useRef, useState } from 'react'
import cn from 'classnames'
import {
RiDeleteBinLine,
} from '@remixicon/react'
import { useTranslation } from 'react-i18next'
import { useContext } from 'use-context-selector'
import cn from '@/utils/classnames'
import { Csv as CSVIcon } from '@/app/components/base/icons/src/public/files'
import { ToastContext } from '@/app/components/base/toast'
import Button from '@/app/components/base/button'
@ -101,7 +101,7 @@ const CSVUploader: FC<Props> = ({
<span className='text-primary-400 cursor-pointer' onClick={selectHandle}>{t('datasetDocuments.list.batchModal.browse')}</span>
</div>
</div>
{dragging && <div ref={dragRef} className='absolute w-full h-full top-0 left-0'/>}
{dragging && <div ref={dragRef} className='absolute w-full h-full top-0 left-0' />}
</div>
)}
{file && (