Skip to content

UX: add horizontal gap between form labels and inputs (Account Settings, auth forms) #212

Description

@schlajo

Problem

On Account Settings (and similar auth forms), field labels sit flush against — or overlap — their input boxes horizontally. There is no readable gap between the end of the label text and the start of the fill-in control.

Observed on RescueDogs fork (same template components):

  • Profile SettingsDisplay Name, Bio: label text runs into the input/textarea border
  • Change PasswordNew Password, Confirm Password: same tight horizontal squeeze; longer labels (Confirm Password) shift the input column inconsistently

This is a horizontal spacing issue (label ↔ input), not vertical spacing between rows.

Expected

A consistent horizontal gap between each label and its control — e.g. gap-x-4 / gap-x-6 — so labels and inputs are visually distinct and scannable.

On narrow viewports, prefer stacking label above input (flex-col) and switch to side-by-side with gap at sm+ per docs/MOBILE-FIRST.md (flex flex-col sm:flex-row).

Likely touch points

  • src/components/auth/AccountSettings/AccountSettings.tsx — Profile Settings + Change Password cards
  • Audit sibling auth forms for the same pattern:
    • src/components/auth/SignInForm/SignInForm.tsx
    • src/components/auth/SignUpForm/SignUpForm.tsx

Suggested approach

Replace cramped side-by-side form-control rows with an explicit row layout, e.g.:

<div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-x-6">
  <label className="sm:w-36 sm:shrink-0 sm:text-right" htmlFor="…">
    <span className="label-text">Display Name</span>
  </label>
  <input className="input input-bordered min-h-11 min-w-0 flex-1"  />
</div>

Use a shared label-column width across fields on the same form so inputs align.

Acceptance criteria

  • Profile Settings: visible horizontal gap between each label and its input/textarea at desktop widths
  • Change Password: same for New Password and Confirm Password
  • Mobile: labels stack above inputs (no crushed ~120px-wide inputs on portrait phones)
  • No overlap of label text and input borders at 320–1280px viewports
  • Storybook / existing unit tests updated if layout assertions exist

Context

Filed from RescueDogs fork testing while reviewing account settings UI. Happy to attach screenshots in a follow-up comment if helpful.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions