Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): show sign-in separator only if email/password and sso buttons are available (#10350)

Marc Klingenab24ee728a49
diff --git a/web/src/pages/auth/sign-in.tsx b/web/src/pages/auth/sign-in.tsx
index 4d0331d1af..2e2b09e3fe 100644
--- a/web/src/pages/auth/sign-in.tsx
+++ b/web/src/pages/auth/sign-in.tsx
@@ -208,19 +208,24 @@ export function SSOButtons({
});
};
+ // Only show separator if credentials are enabled (for sign-in) or if action is sign-up (which always has the form)
+ const showSeparator = authProviders.credentials || action !== "sign in";
+
return (
// any authprovider from props is enabled
Object.entries(authProviders).some(
([name, enabled]) => enabled && name !== "credentials",
) ? (
<div>
- {action === "sign in" ? (
- <div className="my-6 border-t border-border"></div>
- ) : (
- <div className="my-6 text-center text-xs text-muted-foreground">
- or {action} with
- </div>
- )}
+ {showSeparator ? (
+ action === "sign in" ? (
+ <div className="my-6 border-t border-border"></div>
+ ) : (
+ <div className="my-6 text-center text-xs text-muted-foreground">
+ or {action} with
+ </div>
+ )
+ ) : null}
<div className="flex flex-row flex-wrap items-center justify-center gap-2">
{authProviders.google && (
<AuthProviderButton