Skip to content

[6.x] Fix spacing between wrapped combobox chips - #15708

Merged
jaygeorge merged 2 commits into
6.xfrom
15708-combobox-chips-wrapping
Oct 23, 2026
Merged

jaygeorge merged 2 commits into
6.xfrom
15708-combobox-chips-wrapping

Conversation

@jaygeorge

@jaygeorge jaygeorge commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Description of the Problem

When a multi-select or Taggable field has enough selections to wrap onto more than one line, the rows of chips sit twice as far apart as the chips do side by side. With a lot of tags it ends up looking loose and a bit broken.

It happens because each chip has its own top margin, and the row also has a gap. On the first line that's fine, but every wrapped line gets the margin and the gap stacked on top of each other.

00-problem

What this PR Does

Moves the top margin off each chip and onto the row, so it only applies once, above the first line. Wrapped lines then just get the gap, so the spacing is the same in both directions.

I went with this rather than keeping the margin on each chip and dropping the vertical gap, because it separates the two jobs. The gap controls the spacing between chips, and the margin controls how far the chips sit below the field. That let me give the first line a little more room (10px rather than 8px) so it clears the input's shadow, without making wrapped rows any looser. The margin is only added when something's selected, so an empty field doesn't gain any extra space.

The validation rules builder in field settings uses the same chip row, so I've made the same change there.

Before / After

image

How to Reproduce

  1. Add a Taggable field (or a Select with multiple turned on) to a blueprint.
  2. Edit an entry and add enough tags that they wrap onto two or more lines.
  3. Compare the gap between rows with the gap between chips side by side.

- Each chip had its own mt-2 on top of the row's gap-2, so wrapped rows sat 16px apart while chips side by side were 8px apart
- The space above the chips now goes on the row, once, and only when something's selected
- It's 10px rather than 8px, to clear the input's shadow
- The validation rules builder uses the same chip row as the combobox, so it had the same 16px gap between wrapped rows
@jaygeorge
jaygeorge merged commit 83fb8e9 into 6.x Oct 23, 2026
67 checks passed
@jaygeorge
jaygeorge deleted the 15708-combobox-chips-wrapping branch October 23, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant