Skip to content

[6.x] Fix drag handle shifting when a second Grid row or Replicator set is added - #15913

Merged
duncanmcclean merged 1 commit into
statamic:6.xfrom
mynetx:fix/grid-drag-handle-shift
Nov 16, 2026
Merged

duncanmcclean merged 1 commit into
statamic:6.xfrom
mynetx:fix/grid-drag-handle-shift

Conversation

@mynetx

@mynetx mynetx commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Adding a second row to a Grid makes the drag handle grow and pushes the column labels to the right. The same happens to a Replicator set's header when a second set is added.

Since #15592, the drag handle only gets its p-1 padding when keyboard-reorder is on, and Grid rows and Replicator sets only turn that on once there are two or more items. So the handle goes from 7px to 15px wide when the second item appears.

This makes the padding part of the handle's base classes, so it's the same size either way. The only other place using the handle, Customize Columns, now gets the same padded handle as Grid.

Before After
Grid image image
Customize Columns cols-before cols-after

Fixes #15885

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@duncanmcclean

Copy link
Copy Markdown
Member

Thanks for the pull request! 🙌

I've updated the Grid screenshots in the PR description. The old before/after ones looked identical, so I've updated them to show 1 row & 2 rows so you can see the shift.

@duncanmcclean
duncanmcclean merged commit 7601747 into statamic:6.x Nov 16, 2026
65 checks passed
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.

Grid fieldtype has some UI layout shifts, when adding a second row

2 participants