The best way to control Claude Code, Codex and more from any computer or phone
fix(web): standalone auth pages scroll when the card is taller than the window (#19603)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Arham Mahajan committed
Oct 19, 2026 at 01:02 UTC
ac791b9f5cef258d6d34717879cd1c3ff2c9b941
1 file changed
+11
-7
apps/web/src/components/ui/standalone-page.tsx
+11
-7
@@ -19,7 +19,9 @@ export function StandalonePage({
19
readonly children: ReactNode;
20
}) {
21
return (
22
- <div className="relative flex min-h-screen items-center justify-center overflow-hidden bg-background px-4 py-10 text-foreground sm:px-6">
22
+ // #root never scrolls, so the page owns its scroll. Safe centering keeps a
23
+ // card taller than the viewport anchored at the top instead of clipping it.
24
+ <div className="relative h-full overflow-hidden bg-background text-foreground">
25
<div className="pointer-events-none absolute inset-0 opacity-80" aria-hidden>
26
<div className={backdropClassNames[tone]} />
27
{tone === "pairing" ? (
@@ -34,12 +36,14 @@ export function StandalonePage({
36
/>
37
</div>
38
37
- <section
38
- className={`relative w-full max-w-xl rounded-2xl border border-border/80 shadow-2xl shadow-black/20 backdrop-blur-md ${tone === "brand" ? "overflow-hidden bg-card/94" : "bg-card/90"}`}
39
- >
40
- {masthead}
41
- <div className="p-6 sm:p-8">{children}</div>
42
- </section>
39
+ <div className="relative flex h-full items-center-safe justify-center overflow-y-auto scrollbar-gutter-both px-4 py-10 sm:px-6">
40
+ <section
41
+ className={`relative w-full max-w-xl rounded-2xl border border-border/80 shadow-2xl shadow-black/20 backdrop-blur-md ${tone === "brand" ? "overflow-hidden bg-card/94" : "bg-card/90"}`}
42
+ >
43
+ {masthead}
44
+ <div className="p-6 sm:p-8">{children}</div>
45
+ </section>
46
+ </div>
47
</div>
48
);
49
}