fix: restore consistent input field sizing and alignment in FieldInline (#235) #238
Reference in New Issue
Block a user
Delete Branch "DeveshSingh/flotilla:fix/input-field-bug"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
FieldInlinefrom CSS Grid to Flexbox. The flexboxshrink-0wrapper 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.svelteupdates: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%.shrink-0withgrowon the input wrapper, allowing the container to expand and fill the remaining horizontal space.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-borderedcontainers, ensuring the text area actually expands to fill thegrowwrapper.Related Issues
Testing Instructions
e37da856e2to4ca5eb891c