Skip to content

Fix login page vertical centering - #1207

Merged
os-zhuang merged 1 commit into
mainfrom
claude/fix-login-page-center-alignment
Apr 21, 2026
Merged

Fix login page vertical centering#1207
os-zhuang merged 1 commit into
mainfrom
claude/fix-login-page-center-alignment

Conversation

@Claude

@ClaudeClaudeAI commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

The login and register pages were not vertically centered because the unauthenticated layout lacked a container with viewport height.

Changes

  • Wrapped unauthenticated route children in <div className="flex min-h-screen w-full"> in __root.tsx:160
  • The login/register pages already use flex flex-1 items-center justify-center, which now properly stretches to fill the viewport
// Before: no containerreturn<>{children}</>;// After: flex container with full viewport heightreturn<divclassName="flex min-h-screen w-full">{children}</div>;

This matches the pattern used for loading states elsewhere in the root layout.

@vercel

vercelBot commented Apr 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
objectstack-demoReadyReadyPreview, CommentApr 21, 2026 3:33pm
specReadyReadyPreview, CommentApr 21, 2026 3:33pm

Request Review

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Claude@os-zhuang