From 5a7558e3c6b1a3d3392af8c440b0e7ad50c25041 Mon Sep 17 00:00:00 2001 From: aliang Date: Tue, 21 Jan 2025 16:17:47 +0800 Subject: [PATCH] chore(ui): adjust SSO credential form styling (#3742) --- .../sso/components/ldap-credential-form.tsx | 114 +++++++++--------- .../sso/components/oauth-credential-form.tsx | 11 +- 2 files changed, 64 insertions(+), 61 deletions(-) diff --git a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/sso/components/ldap-credential-form.tsx b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/sso/components/ldap-credential-form.tsx index d8579011404d..b699f9dde69c 100644 --- a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/sso/components/ldap-credential-form.tsx +++ b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/sso/components/ldap-credential-form.tsx @@ -453,7 +453,8 @@ export function LDAPCredentialForm({ )} /> -
+ +
-
- - - -
- - {!isNew && ( - + - - - - - Are you absolutely sure? - - - This action cannot be undone. It will permanently delete - the current credential. - - - - Cancel - - {isDeleting && ( - - )} - Yes, delete it - - - - - )} - - {({ hasValidLicense }) => ( - + + + + + + + Are you absolutely sure? + + + This action cannot be undone. It will permanently delete + the current credential. + + + + Cancel + + {isDeleting && ( + + )} + Yes, delete it + + + + )} - + + {({ hasValidLicense }) => ( + + )} + +
diff --git a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/sso/components/oauth-credential-form.tsx b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/sso/components/oauth-credential-form.tsx index f0c6b0cfaa44..7750d925ca7f 100644 --- a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/sso/components/oauth-credential-form.tsx +++ b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/sso/components/oauth-credential-form.tsx @@ -44,6 +44,7 @@ import { import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group' +import { Separator } from '@/components/ui/separator' import { CopyButton } from '@/components/copy-button' import { LicenseGuard } from '@/components/license-guard' @@ -276,17 +277,20 @@ export default function OAuthCredentialForm({ {oauthRedirectUrlData && ( -
+
Create your OAuth2 application with the following information
-
+
Authorization callback URL
- {oauthRedirectUrlData.oauthCallbackUrl} + + {oauthRedirectUrlData.oauthCallbackUrl} + @@ -345,6 +349,7 @@ export default function OAuthCredentialForm({ )} /> +