Repository navigation
fix(ui): Field keeps its control at h-control when stretched - #191
Merged
Merged
Conversation
Field is a grid; with the default align-content its rows shared any extra height, so a field stretched by its parent (a form row beside a field with an error, a stretching flex column) grew its Input, Select or Textarea past h-control. content-start packs the rows at the top. Found by the pre-release check of a plain Vite app built from the packed tarballs; unchanged where a field is not stretched. Closes #190
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fieldpacks its rows at the top (content-start), so a field stretched by its parent keeps itsInput,SelectorTextareaath-control(#190). Closes #190.packages/ui/src/lib/Field.svelte:grid gap-1becomesgrid content-start gap-1, with a comment explaining why.Why
With the default
align-content, the field's rows (label, control, hint, error) share any height the parent adds. So a field in a form row beside a field with an error, in a stretching flex column, or in a grid with a minimum height grew its control past the control height.The pre-release consumer check found it: a plain Vite app built from the packed tarballs rendered the input 76 px tall instead of 44 px. The plain-CSS
Fieldbefore the Tailwind move behaved the same, so this is not a migration regression. Where a field is not stretched (the playground, the visual baselines), nothing changes.Testing
bun run check,test(ui 120),lintanddetectpass.grid min-h-screenmeasures 76 px with the current tarball and 44 px with this fix packed into it.major): deterministic checks found nothing; the agent judge returnedshould_block: false, 0 issues.