Skip to content

Fix vertical spacing on has-many forms#8927

Merged
javierjulio merged 1 commit intomasterfrom
forms-has-many-vertical-spacing
Jan 27, 2026
Merged

Fix vertical spacing on has-many forms#8927
javierjulio merged 1 commit intomasterfrom
forms-has-many-vertical-spacing

Conversation

@javierjulio
Copy link
Member

For consistent display in has-many forms, this adds a bottom margin on the .has-many-fields class since those are the sibling elements. The space-y-* utility won't work on the .has-many-container class (the parent of the former) because there is a hidden input element (when editing a saved record) as a sibling. Further, this adds a little bottom margin on the .has-many-add control.

@codecov
Copy link

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.08%. Comparing base (ece37fe) to head (98e3930).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8927   +/-   ##
=======================================
  Coverage   99.08%   99.08%           
=======================================
  Files         139      139           
  Lines        4045     4045           
=======================================
  Hits         4008     4008           
  Misses         37       37           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@javierjulio javierjulio force-pushed the forms-has-many-vertical-spacing branch from 0be201f to 0cc5974 Compare January 26, 2026 20:05
For consistent display with the different ways to use has-many forms, we want to add bottom margin on has-many-fields since those are the sibling elements. The space-y-* utility won't work on has-many-container (the parent of the former) because there is a hidden input element as a sibling (to track resource database id). Further, this adds a little bottom margin on the has-many-add control.
@javierjulio javierjulio force-pushed the forms-has-many-vertical-spacing branch from 0cc5974 to 98e3930 Compare January 27, 2026 00:21
@javierjulio javierjulio merged commit 75acaf3 into master Jan 27, 2026
26 checks passed
@javierjulio javierjulio deleted the forms-has-many-vertical-spacing branch January 27, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant