fix: button (#5470)

This commit is contained in:
zxhlyh 2024-06-21 14:17:45 +08:00 • committed by GitHub
commit 5d4d65a85b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
112 changed files with 638 additions and 256 deletions

View file

@ -42,10 +42,6 @@ const CustomAppHeaderBrand = () => {
</div>
<div className='flex items-center mb-2'>
<Button
className={`
!h-8 !px-3 bg-white !text-[13px]
${plan.type === Plan.sandbox ? 'opacity-40' : ''}
`}
disabled={plan.type === Plan.sandbox}
>
<ImagePlus className='mr-2 w-4 h-4' />
@ -53,10 +49,6 @@ const CustomAppHeaderBrand = () => {
</Button>
<div className='mx-2 h-5 w-[1px] bg-black/5'></div>
<Button
className={`
!h-8 !px-3 bg-white !text-[13px]
${plan.type === Plan.sandbox ? 'opacity-40' : ''}
`}
disabled={plan.type === Plan.sandbox}
>
{t('custom.restore')}

View file

@ -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}
>