Skip to content

fix(profile): align @username and Joined-date baselines - #851

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/profile-header-username-joined-alignment
Aug 29, 2026
Merged

fix(profile): align @username and Joined-date baselines#851
github-actions[bot] merged 1 commit into
mainfrom
fix/profile-header-username-joined-alignment

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

Summary

  • Visitor feedback on /profiles/mao, pointing at p.break-all.text-sm (@mao) and span.inline-flex.items-center (Joined Aug 2025): "these two elements look misaligned and ugly."
  • Root cause: their shared row (src/components/profile/ProfileLayout.tsx) used items-center. The username text grows across breakpoints (text-smsm:text-basemd:text-lg) while the "Joined" badge stays fixed at text-xs, so centering by box height visibly dropped the smaller text below the username's baseline.
  • Fix: items-centeritems-baseline on the row, matching the same name+meta-text pattern already used in src/components/ui/ProfileCard.tsx. One-line change, no other layout touched.

Test plan

  • npx tsc --noEmit — clean
  • npx eslint src/components/profile/ProfileLayout.tsx — clean
  • Full local npm run test:unit (2636 tests) and full pre-push suite — green
  • Visual verification: rendered the exact before/after JSX in the running dev app (temporary local-only preview route, removed before commit) and screenshotted both at 1280px — confirmed Joined Aug 2025 now sits on the same text baseline as @mao instead of hanging below it. Screenshot evidence kept in the session log; not committed (route was never part of the diff).
  • Could not load the real /profiles/mao page against production data — this sandbox has no reachable Supabase credentials, so real-profile SSR isn't exercisable here (unrelated to this change).

🤖 Generated with Claude Code

…ader

Visitor feedback on /profiles/mao: the @username and "Joined <date>"
badge looked misaligned. Their shared flex row used items-center, so
the smaller "Joined" text (fixed text-xs) was centered against the
taller @username line-height (which grows to md:text-lg), pulling it
visibly below the username's baseline. Switch to items-baseline —
the same convention already used for this pattern in ProfileCard.tsx.
@github-actions
github-actions Bot merged commit 3c96445 into main Aug 29, 2026
6 checks passed
@github-actions
github-actions Bot deleted the fix/profile-header-username-joined-alignment branch August 29, 2026 18:22
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.

1 participant