Skip to content

Widen the vault password fields - #153

Merged
TeoSlayer merged 1 commit into
TeoSlayer:mainfrom
pstayets:fix/vault-password-input-width
Sep 14, 2026
Merged

TeoSlayer merged 1 commit into
TeoSlayer:mainfrom
pstayets:fix/vault-password-input-width

Conversation

@pstayets

Copy link
Copy Markdown
Contributor

What changed

.vault-input is 8ch wide because it was drawn for the four-letter recovery-key confirmation, but the same class dresses every vault password field: the setup form, the unlock gate, and the unlock-methods section on the Account page. A password typed into an eight-character box is hard to type and impossible to check.

This adds one rule, .vault-input[type="password"] { width: 16ch; }, so the six password inputs are twice as wide. The key-confirm box (XXXX) and the two-line recovery-key textarea keep their current widths. CSS only; no markup or logic changed.

Out of scope, noted for later: .vault-input also applies text-transform: uppercase, so the "At least 8 characters" placeholder on the setup form renders as AT LEAST 8 C… and is still clipped at 16ch. It only affects the placeholder, never the typed password.

Verification

  • Added or updated regression tests where behavior changed — no behavior changed (CSS width only), so no test was added
  • In app/: npm run lint (pre-existing warnings only, none in this file), npm run build (tsc + vite + server bundle succeed; check-bundle reports the expected missing VITE_FIREBASE_* values on a machine without .env.local), and npm test (841 passed, 3 skipped)
  • Root npm run check / npm run build:web and go test -race ./... / go vet ./... were not run: the change touches only app/src/styles/vault.css
  • Considered bearer-link, terminal-input, secret, and privacy implications — the fields stay type="password"; nothing about what is sent or stored changes
  • Did not include real share links, terminal contents, credentials, or Cloudflare configuration

Rendered the setup and unlock screens with the app's stylesheets before and after: the password box goes from roughly 5 visible bullets to roughly 12, and still fits inside the card at a 400px viewport.

Changelog

Added under Unreleased → Fixed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ueq619VZvd44TY7bF43KDR

`.vault-input` is 8ch wide because it was drawn for the four-letter
recovery-key confirmation, but the same class dresses every vault
password field: setup, unlock, and the Account page's unlock methods.
A password typed into an eight-character box is hard to type and
impossible to check.

Password inputs are now 16ch, twice as wide, via an attribute selector
so the key-confirm box and the wide recovery-key textarea are untouched.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ueq619VZvd44TY7bF43KDR
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.

3 participants