mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-11 20:06:54 +08:00
fix: button (#5470)
This commit is contained in:
@@ -482,7 +482,7 @@ const TextGeneration: FC<IMainProps> = ({
|
||||
<div className='ml-1 text-[#D92D20]'>{t('share.generation.batchFailed.info', { num: allFailedTaskList.length })}</div>
|
||||
<Button
|
||||
variant='primary'
|
||||
className='ml-2 !h-8 !px-3'
|
||||
className='ml-2'
|
||||
onClick={handleRetryAllFailedTask}
|
||||
>{t('share.generation.batchFailed.retry')}</Button>
|
||||
<div className='mx-3 w-[1px] h-3.5 bg-gray-200'></div>
|
||||
@@ -545,7 +545,7 @@ const TextGeneration: FC<IMainProps> = ({
|
||||
</div>
|
||||
{!isPC && (
|
||||
<Button
|
||||
className='shrink-0 !h-8 !px-3 ml-2'
|
||||
className='shrink-0 ml-2'
|
||||
onClick={showResSidebar}
|
||||
>
|
||||
<div className='flex items-center space-x-2 text-primary-600 text-[13px] font-medium'>
|
||||
|
||||
@@ -28,7 +28,7 @@ const Header: FC<IResultHeaderProps> = ({
|
||||
<div className='text-gray-800 text-2xl leading-4 font-normal'>{t('share.generation.resultTitle')}</div>
|
||||
<div className='flex items-center space-x-2'>
|
||||
<Button
|
||||
className='flex items-center !h-7 !p-[2px] !pr-2'
|
||||
className='h-7 p-[2px] pr-2'
|
||||
onClick={() => {
|
||||
copy(result)
|
||||
Toast.notify({ type: 'success', message: 'copied' })
|
||||
|
||||
@@ -45,7 +45,7 @@ const RunBatch: FC<IRunBatchProps> = ({
|
||||
<div className='flex justify-end'>
|
||||
<Button
|
||||
variant="primary"
|
||||
className='mt-4 !h-8 !pl-3 !pr-4'
|
||||
className='mt-4 pl-3 pr-4'
|
||||
onClick={handleSend}
|
||||
disabled={!isParsed || !isAllFinished}
|
||||
>
|
||||
|
||||
@@ -31,7 +31,7 @@ const ResDownload: FC<IResDownloadProps> = ({
|
||||
}}
|
||||
data={values}
|
||||
>
|
||||
<Button className={cn('flex items-center !h-8 space-x-2 bg-white !text-[13px] font-medium', isMobile ? '!p-0 !w-8 justify-center' : '!px-3')}>
|
||||
<Button className={cn('space-x-2 bg-white', isMobile ? '!p-0 !w-8 justify-center' : '')}>
|
||||
<DownloadIcon className='w-4 h-4 text-[#155EEF]' />
|
||||
{!isMobile && <span className='text-[#155EEF]'>{t('common.operation.download')}</span>}
|
||||
</Button>
|
||||
|
||||
@@ -118,7 +118,6 @@ const RunOnce: FC<IRunOnceProps> = ({
|
||||
<div className='w-full mt-4'>
|
||||
<div className="flex items-center justify-between">
|
||||
<Button
|
||||
className='!h-8 !p-3'
|
||||
onClick={onClear}
|
||||
disabled={false}
|
||||
>
|
||||
@@ -126,7 +125,6 @@ const RunOnce: FC<IRunOnceProps> = ({
|
||||
</Button>
|
||||
<Button
|
||||
variant="primary"
|
||||
className='!h-8 !pl-3 !pr-4'
|
||||
onClick={onSend}
|
||||
disabled={false}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user