Skip to content

fix(frontend): tighten logo sizing on register page and header#323

Merged
hamza-56 merged 1 commit into
mainfrom
fix/register-header-logo-sizing
May 13, 2026
Merged

fix(frontend): tighten logo sizing on register page and header#323
hamza-56 merged 1 commit into
mainfrom
fix/register-header-logo-sizing

Conversation

@hamza-56
Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Visit /register — logo sized consistently with /login
  • Visit / (landing) — header logo no longer overflows the nav bar
  • Check dark/light themes

Matches the recent login/home logo adjustments — shrinks the register
auth-card logo (72→56, mb-1→mb-6) and the nav header logo (80→56) so
the header logo no longer overflows the h-16 navbar.
@hamza-56 hamza-56 self-assigned this May 13, 2026
@claude
Copy link
Copy Markdown

claude Bot commented May 13, 2026

Claude finished @hamza-56's task in 1m 4s —— View job


Review: fix(frontend): tighten logo sizing on register page and header

  • Gather context and read changed files
  • Check for previous review comments — none found
  • Review for correctness, security, and best practices
  • Post review summary

Overview

Small, focused CSS-only PR that adjusts two SparkthLogo size props and one margin class to match the login page styling established in #319.

Changes Reviewed

File Change Verdict
frontend/app/register/RegisterForm.tsx size={72}size={56}, mb-1mb-6 ✅ Now matches /login exactly
frontend/components/SparkthHeader.tsx size={80}size={56} ✅ Fits within the h-16 (64px) navbar

Consistency Check

The login page (frontend/app/login/LoginForm.tsx:76-77) uses size={56} with mb-6 — this PR now mirrors that exactly on /register. The SparkthLogo default prop is size={80} (SparkthLogo.tsx:8), and the header was previously using that default via an explicit size={80}. Reducing to 56 is appropriate since the rendered icon height is size * 0.72 ≈ 40px, which comfortably fits within the 64px (h-16) navbar with room for vertical centering.

Assessment

No issues found. This is a clean, minimal fix:

  • No logic changes, no new dependencies, no React anti-patterns
  • No security implications
  • Sizing values are consistent across login/register pages
  • Header logo now properly fits its container

Looks good to merge.

Copy link
Copy Markdown
Contributor

@abdulrafey1 abdulrafey1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hamza-56 hamza-56 merged commit b5890c9 into main May 13, 2026
5 checks passed
@hamza-56 hamza-56 deleted the fix/register-header-logo-sizing branch May 13, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants