tinyauth icon indicating copy to clipboard operation
tinyauth copied to clipboard

[BUG] Login form error state layout is visually broken

Open AhmadRaza365 opened this issue 1 year ago • 1 comments

While testing the login form, I noticed a visual issue with how error messages are displayed. When required fields are left empty and the form is submitted:

The "Required" error message appears outside the input field container, misaligned from the corresponding field. There's an unnecessary gap between the input field and the error message. The "Forgot your password?" link overlaps awkwardly with the Password field. The text spacing and flow break the visual hierarchy and usability.

To Reproduce Steps to reproduce the behavior:

  1. Open the login form
  2. Leave both Username and Password fields empty
  3. Click the Login button
  4. Observe the error messages and layout

Expected behavior Error messages should be close to their input fields, and the layout should remain clean and readable, without overlapping or breaking the form's structure.

Screenshots Image

Device:

  • OS: Windows 11
  • Browser Chrome, Opera

AhmadRaza365 avatar Jul 03 '25 20:07 AhmadRaza365

Sorry @AhmadRaza365 I had to fix this myself because I need to release. The fix is in https://github.com/steveiliop56/tinyauth/commit/f780e81ec2fe5f5e550e5d2525d5cdd9bea47c0a basically the p style from shadcn had a margin if it's not the first child, I don't know why but removing it works.

steveiliop56 avatar Jul 05 '25 21:07 steveiliop56