Skip to content

Commit d99a4c4

Browse files
samejrcursoragent
andcommitted
feat(webapp): consistent login page widths and SSO page copy
Centralize login route width in LoginPageLayout so all login pages render identically. Tighten the SSO domain policy copy and add an external-link arrow to the "Ask about SSO" link. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e61ba0a commit d99a4c4

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

apps/webapp/app/components/LoginPageLayout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export function LoginPageLayout({ children }: { children: React.ReactNode }) {
5252
<LogoType className="w-36" />
5353
</a>
5454
</div>
55-
<div className="flex h-full max-w-sm items-center justify-center">{children}</div>
55+
<div className="flex h-full w-full max-w-xs items-center justify-center">
56+
<div className="w-full">{children}</div>
57+
</div>
5658
<Paragraph variant="small" className="text-center">
5759
Having login issues? <TextLink href="https://trigger.dev/contact">Email us</TextLink> or{" "}
5860
<TextLink href="https://trigger.dev/discord">ask us in Discord</TextLink>

apps/webapp/app/routes/login.sso/route.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getFormProps, getInputProps, useForm } from "@conform-to/react";
22
import { parseWithZod } from "@conform-to/zod";
3-
import { ArrowLeftIcon } from "@heroicons/react/20/solid";
3+
import { ArrowLeftIcon, ArrowUpRightIcon } from "@heroicons/react/20/solid";
44
import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
55
import { Form, useNavigation } from "@remix-run/react";
66
import { typedjson, useTypedLoaderData } from "remix-typedjson";
@@ -37,7 +37,7 @@ const CONTENT: Record<Reason, { heading: string; body: string }> = {
3737
},
3838
domain_policy: {
3939
heading: "SSO required",
40-
body: "Trigger.dev couldn't send a magic link because your organization requires single sign-on. Continue to your identity provider.",
40+
body: "Your organization requires single sign-on. Continue with your identity provider.",
4141
},
4242
oauth_blocked: {
4343
heading: "SSO required",
@@ -179,6 +179,8 @@ export default function LoginSsoPage() {
179179
<LinkButton
180180
to="https://trigger.dev/contact"
181181
variant="minimal/small"
182+
TrailingIcon={ArrowUpRightIcon}
183+
trailingIconClassName="text-text-dimmed group-hover:text-text-bright transition"
182184
data-action="ask about sso"
183185
>
184186
Ask about SSO

0 commit comments

Comments
 (0)