mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-30 19:15:10 +08:00
fix: resolve overlap issue with API Extension selector and modal (#9407)
This commit is contained in:
parent
86594851cb
commit
a87890b3cc
@ -81,7 +81,10 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className='flex items-center text-xs text-primary-600 cursor-pointer'
|
className='flex items-center text-xs text-primary-600 cursor-pointer'
|
||||||
onClick={() => setShowAccountSettingModal({ payload: 'api-based-extension' })}
|
onClick={() => {
|
||||||
|
setOpen(false)
|
||||||
|
setShowAccountSettingModal({ payload: 'api-based-extension' })
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{t('common.apiBasedExtension.selector.manage')}
|
{t('common.apiBasedExtension.selector.manage')}
|
||||||
<ArrowUpRight className='ml-0.5 w-3 h-3' />
|
<ArrowUpRight className='ml-0.5 w-3 h-3' />
|
||||||
@ -106,7 +109,10 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
|
|||||||
<div className='p-1'>
|
<div className='p-1'>
|
||||||
<div
|
<div
|
||||||
className='flex items-center px-3 h-8 text-sm text-primary-600 cursor-pointer'
|
className='flex items-center px-3 h-8 text-sm text-primary-600 cursor-pointer'
|
||||||
onClick={() => setShowApiBasedExtensionModal({ payload: {}, onSaveCallback: () => mutate() })}
|
onClick={() => {
|
||||||
|
setOpen(false)
|
||||||
|
setShowApiBasedExtensionModal({ payload: {}, onSaveCallback: () => mutate() })
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<RiAddLine className='mr-2 w-4 h-4' />
|
<RiAddLine className='mr-2 w-4 h-4' />
|
||||||
{t('common.operation.add')}
|
{t('common.operation.add')}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user