trackslash
TRACK-80 P3

Refine the Login page layout so the Password section fills the width

0
All issues

Description

Problem

The Login account page (login-panel in internal/server/templates/settings.html:42) lays its sections out in a lg:grid-cols-2 grid. On large screens:

  • Password takes only the left column, and the right half of that row is empty.
  • Passkeys spans both columns (lg:col-span-2) underneath.

As a result the password box and its fields are half-width, and the two boxes don't line up with each other.

Expected behavior

The page reads as one consistent column of full-width sections. Password and Passkeys both span the content width. Within the Password section, the controls are arranged to use that width well rather than being stretched, for example:

  • the "Password login" on/off row across the top;
  • Current password and New password side by side on wide screens (stacked on narrow ones), with Change password aligned beneath them.

Acceptance criteria

  • Password and Passkeys have the same width and line up at every supported breakpoint. No empty grid cells.
  • Password inputs keep a comfortable width: they don't span the whole max-w-6xl container as one long field.
  • Every Password state still lays out cleanly: password login on (with the form), password login off, and no password set. The same goes for its success and error messages.
  • The password-confirm modal for passkeys and the "Add passkey" modal are unaffected.
  • Works in light and dark modes and on mobile.

Related

The Profile page (profile-panel) uses the same lg:grid-cols-2 wrapper around a single card, so it has the same half-width look. Consider applying the same fix there so the account pages match (TRACK-75).

Sub-issues

0

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Fixed in https://github.com/badbundle/track-slash-app/pull/170 (merged as 3955d64).

  • The account pages stack their cards in one column, so Password and Passkeys on Login now share the same width and left edge.
  • Current and new password sit side by side from sm up and stack on mobile, with Change password beneath them.
  • The Password card gets a one-line description to match the Passkeys header.
  • Profile gets the same fix: a full-width card, with display name and email side by side.
  • Notifications drops its unused two-column wrapper, with no visual change.
  • Checked before and after in a browser at 1440px (light and dark) and 390px.