From 25e0013db92fac7ca8dc8ad4f5211ecab3d40b5a Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Wed, 16 Jul 2025 16:00:53 +0800 Subject: [PATCH] fix --- web/app/components/base/modal/modal.tsx | 64 ++++++++++--------- .../plugin-auth/authorize/api-key-modal.tsx | 6 +- .../authorize/oauth-client-settings.tsx | 6 +- 3 files changed, 42 insertions(+), 34 deletions(-) diff --git a/web/app/components/base/modal/modal.tsx b/web/app/components/base/modal/modal.tsx index 5738704722..e6e9fb8804 100644 --- a/web/app/components/base/modal/modal.tsx +++ b/web/app/components/base/modal/modal.tsx @@ -82,36 +82,40 @@ const Modal = ({
{children}
) } -
- {footerSlot} - { - showExtraButton && ( - <> - -
- - ) - } - - +
+
+ {footerSlot} +
+
+ { + showExtraButton && ( + <> + +
+ + ) + } + + +
{bottomSlot}
diff --git a/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx b/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx index e748dd4fd0..d582c660b6 100644 --- a/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx @@ -127,11 +127,13 @@ const ApiKeyModal = ({ footerSlot={ helpField && ( - {renderI18nObject(helpField?.help as any)} + + {renderI18nObject(helpField?.help as any)} + ) diff --git a/web/app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx b/web/app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx index b143c18d82..14c7ed957f 100644 --- a/web/app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/oauth-client-settings.tsx @@ -170,11 +170,13 @@ const OAuthClientSettings = ({ { helpField && __oauth_client__ === 'custom' && ( - {renderI18nObject(helpField?.help as any)} + + {renderI18nObject(helpField?.help as any)} + )}