fix: button (#5470)
This commit is contained in:
parent
92ddb410cd
commit
5d4d65a85b
112 changed files with 638 additions and 256 deletions
|
|
@ -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')}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue