feat/tool-oauth
zxhlyh 10 months ago
parent 75d8cb4978
commit 25e0013db9

@ -82,8 +82,11 @@ const Modal = ({
<div className='px-6 py-3'>{children}</div> <div className='px-6 py-3'>{children}</div>
) )
} }
<div className='flex items-center justify-end p-6 pt-5'> <div className='flex justify-between p-6 pt-5'>
<div>
{footerSlot} {footerSlot}
</div>
<div className='flex items-center'>
{ {
showExtraButton && ( showExtraButton && (
<> <>
@ -113,6 +116,7 @@ const Modal = ({
{confirmButtonText || t('common.operation.save')} {confirmButtonText || t('common.operation.save')}
</Button> </Button>
</div> </div>
</div>
{bottomSlot} {bottomSlot}
</div> </div>
</PortalToFollowElemContent> </PortalToFollowElemContent>

@ -127,11 +127,13 @@ const ApiKeyModal = ({
footerSlot={ footerSlot={
helpField && ( helpField && (
<a <a
className='system-xs-regular flex h-8 grow items-center text-text-accent' className='system-xs-regular mr-2 flex items-center py-2 text-text-accent'
href={helpField?.url} href={helpField?.url}
target='_blank' target='_blank'
> >
<span className='break-all'>
{renderI18nObject(helpField?.help as any)} {renderI18nObject(helpField?.help as any)}
</span>
<RiExternalLinkLine className='ml-1 h-3 w-3' /> <RiExternalLinkLine className='ml-1 h-3 w-3' />
</a> </a>
) )

@ -170,11 +170,13 @@ const OAuthClientSettings = ({
{ {
helpField && __oauth_client__ === 'custom' && ( helpField && __oauth_client__ === 'custom' && (
<a <a
className='system-xs-regular mt-4 flex h-4 items-center text-text-accent' className='system-xs-regular mt-4 flex items-center text-text-accent'
href={helpField?.url} href={helpField?.url}
target='_blank' target='_blank'
> >
<span className='break-all'>
{renderI18nObject(helpField?.help as any)} {renderI18nObject(helpField?.help as any)}
</span>
<RiExternalLinkLine className='ml-1 h-3 w-3' /> <RiExternalLinkLine className='ml-1 h-3 w-3' />
</a> </a>
)} )}

Loading…
Cancel
Save