mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 02:46:52 +08:00
fix: button (#5470)
This commit is contained in:
@@ -154,8 +154,7 @@ const CustomWebAppBrand = () => {
|
||||
!uploading && (
|
||||
<Button
|
||||
className={`
|
||||
relative mr-2 !h-8 !px-3 bg-white !text-[13px]
|
||||
${uploadDisabled ? 'opacity-40' : ''}
|
||||
relative mr-2
|
||||
`}
|
||||
disabled={uploadDisabled}
|
||||
>
|
||||
@@ -182,7 +181,7 @@ const CustomWebAppBrand = () => {
|
||||
{
|
||||
uploading && (
|
||||
<Button
|
||||
className='relative mr-2 !h-8 !px-3 bg-white !text-[13px] opacity-40'
|
||||
className='relative mr-2'
|
||||
disabled={true}
|
||||
>
|
||||
<RiLoader2Line className='animate-spin mr-2 w-4 h-4' />
|
||||
@@ -195,14 +194,14 @@ const CustomWebAppBrand = () => {
|
||||
<>
|
||||
<Button
|
||||
variant='primary'
|
||||
className='mr-2 !h-8 !px-3 !py-0 !text-[13px]'
|
||||
className='mr-2'
|
||||
onClick={handleApply}
|
||||
disabled={webappBrandRemoved || !isCurrentWorkspaceManager}
|
||||
>
|
||||
{t('custom.apply')}
|
||||
</Button>
|
||||
<Button
|
||||
className='mr-2 !h-8 !px-3 !text-[13px] bg-white'
|
||||
className='mr-2'
|
||||
onClick={handleCancel}
|
||||
disabled={webappBrandRemoved || !isCurrentWorkspaceManager}
|
||||
>
|
||||
@@ -213,10 +212,6 @@ const CustomWebAppBrand = () => {
|
||||
}
|
||||
<div className='mr-2 h-5 w-[1px] bg-black/5'></div>
|
||||
<Button
|
||||
className={`
|
||||
!h-8 !px-3 bg-white !text-[13px]
|
||||
${(uploadDisabled || (!webappLogo && !webappBrandRemoved)) ? 'opacity-40' : ''}
|
||||
`}
|
||||
disabled={uploadDisabled || (!webappLogo && !webappBrandRemoved)}
|
||||
onClick={handleRestore}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user