Skip to content

fix(auth): space the sign-in and register buttons apart - #179

Merged
Ziqian-Huang0607 merged 1 commit into
codehubbers:mainfrom
dailker:fix/auth-button-gap
Dec 3, 2026
Merged

Ziqian-Huang0607 merged 1 commit into
codehubbers:mainfrom
dailker:fix/auth-button-gap

Conversation

@dailker

@dailker dailker commented Dec 3, 2026

Copy link
Copy Markdown
Member

The sign-in and register buttons on /auth were touching. #152 dropped the me-3 margin on the sign-in button, and the wrapper only had space-y-4, which adds vertical space and none between buttons sitting side by side. MXD-K1 reported it in #design-ui.

We ran a poll there with three options, and A won with 3 of 4 votes: keep the buttons side by side with a 16px gap. This PR changes the wrapper to flex flex-wrap justify-center gap-4.

Checked locally

  • Desktop (800px): the buttons sit side by side with a 16px gap (sign-in right edge 504, register left edge 520).
  • Mobile (375px): they wrap and stack, still with 16px between them.
  • prettier --check, eslint and the full Jest run all pass (416/416).

codehubbers#152 dropped the me-3 margin on the sign-in button, so the two buttons
touched. Lay them out with flex and a 16px gap instead of space-y-4, which
only spaced them vertically. They still wrap and stack on narrow screens.

Picked by the community poll in #design-ui (option A, 3 of 4 votes).
@dailker dailker added the bug Something isn't working label Dec 3, 2026
@dailker
dailker requested a review from MXD-K1 December 3, 2026 12:01
@dailker dailker added the frontend UI / React / Next.js pages label Dec 3, 2026
@dailker dailker self-assigned this Dec 3, 2026
@dailker dailker added the design Visual design, icons, wallpapers, themes label Dec 3, 2026

@Ziqian-Huang0607 Ziqian-Huang0607 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Verified against the markup: both buttons are w-80 inside a single wrapper, and space-y-4 only separates children vertically, so whenever the buttons sit side by side there is no gap between them. flex flex-wrap justify-center gap-4 gives a 16px gap on both axes and stacks them cleanly on narrow screens, which matches the option that won the design poll.

Checked the diff applies cleanly on current main, CI is green, and the change is one class on one element, so no side effects elsewhere. Approve.

@Ziqian-Huang0607 Ziqian-Huang0607 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Independently re-checked the markup, and the diagnosis holds. The two buttons are inline-block with w-80, so when they sit side by side the old space-y-4 did literally nothing for them (it only adds vertical margin between children), which is why removing me-3 in #152 made them touch. flex flex-wrap justify-center gap-4 fixes both axes at once: 16px between them on desktop, 16px between the stacked rows on mobile, and no change to any other element since the wrapper only holds these two buttons. Matches the option that won the poll.

One pre-existing nit, not for this PR: w-80 is a fixed 320px, so on viewports under roughly 368px the buttons overflow the padded container. If that matters, a w-full max-w-xs pattern fixes it in the same breath. Happy to open a tiny follow-up if you want it.

Either way this change is correct as-is.

@Ziqian-Huang0607
Ziqian-Huang0607 merged commit 02c0297 into codehubbers:main Dec 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working design Visual design, icons, wallpapers, themes frontend UI / React / Next.js pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants