fix: restore consistent input field sizing and alignment in FieldInline (#235) #238

Merged
hodlbod merged 1 commits from DeveshSingh/flotilla:fix/input-field-bug into dev 2026-04-20 16:26:44 +00:00
Contributor

Title

fix: restore consistent input field sizing and alignment in FieldInline.

Description

This PR resolves an issue where text input fields in authentication and sign-up modals (Email, Password, etc.) were collapsing to their minimum width and had inconsistent sizes.

This occurred due to a recent migration of FieldInline from CSS Grid to Flexbox. The flexbox shrink-0 wrapper prevented inputs from expanding, and the lack of a defined label width caused the remaining space (and thus input widths) to vary based on the length of the label text (e.g., "Email*" vs "Password*").

Changes Made

  • FieldInline.svelte updates:
    • Added min-w-[30%] to the label container. This guarantees that short labels (like in auth forms) take up a consistent baseline width, ensuring the remaining space for the inputs is identical and they align perfectly. Long labels (like in Settings) are unaffected and can still stretch up to 80%.
    • Replaced shrink-0 with grow on the input wrapper, allowing the container to expand and fill the remaining horizontal space.
  • Input Component standardization:
    • Added class="grow" to the inner <input> tags across authentication components (SignUpEmail, SignUpEmailConfirm, LogInEmail, LogInOTP, LogInKey, PasswordResetConfirm). This aligns with DaisyUI v4 best practices for inputs placed inside .input-bordered containers, ensuring the text area actually expands to fill the grow wrapper.

Related Issues

Testing Instructions

  1. Navigate to the Log In or Sign Up modals.
  2. Verify that the "Email" and "Password" input boxes now stretch horizontally to fill the container and are exactly the same width.
  3. Navigate to Settings -> Alerts.
  4. Verify that the long labels (e.g., "Always notify me when mentioned") still display correctly without restrictive wrapping, and the toggle switches remain properly aligned to the right.
### Title fix: restore consistent input field sizing and alignment in FieldInline. ### Description This PR resolves an issue where text input fields in authentication and sign-up modals (Email, Password, etc.) were collapsing to their minimum width and had inconsistent sizes. This occurred due to a recent migration of `FieldInline` from CSS Grid to Flexbox. The flexbox `shrink-0` wrapper prevented inputs from expanding, and the lack of a defined label width caused the remaining space (and thus input widths) to vary based on the length of the label text (e.g., "Email*" vs "Password*"). ### Changes Made * **` FieldInline.svelte` updates**: * Added `min-w-[30%]` to the label container. This guarantees that short labels (like in auth forms) take up a consistent baseline width, ensuring the remaining space for the inputs is identical and they align perfectly. Long labels (like in Settings) are unaffected and can still stretch up to 80%. * Replaced `shrink-0` with `grow` on the input wrapper, allowing the container to expand and fill the remaining horizontal space. * **Input Component standardization**: * Added `class="grow"` to the inner `<input>` tags across authentication components (`SignUpEmail`, `SignUpEmailConfirm`, `LogInEmail`, `LogInOTP`, `LogInKey`, `PasswordResetConfirm`). This aligns with DaisyUI v4 best practices for inputs placed inside `.input-bordered` containers, ensuring the text area actually expands to fill the `grow` wrapper. ### Related Issues * Fixes #235 ### Testing Instructions 1. Navigate to the **Log In** or **Sign Up** modals. 2. Verify that the "Email" and "Password" input boxes now stretch horizontally to fill the container and are exactly the same width. 3. Navigate to **Settings -> Alerts**. 4. Verify that the long labels (e.g., "Always notify me when mentioned") still display correctly without restrictive wrapping, and the toggle switches remain properly aligned to the right.
hodlbod added 1 commit 2026-04-20 16:26:38 +00:00
hodlbod force-pushed fix/input-field-bug from e37da856e2 to 4ca5eb891c 2026-04-20 16:26:38 +00:00 Compare
hodlbod merged commit 463837e7d4 into dev 2026-04-20 16:26:44 +00:00
hodlbod deleted branch fix/input-field-bug 2026-04-20 16:26:45 +00:00
Sign in to join this conversation.