[5.x]: Reordering Entries in Structures is Difficult
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
Noticed this behavior happening on level 2 and 3 entries. Reordering these nested entries displaces the positioning relative to the mouse, causing difficulties with precisely assigning a new order with the selected entry via drag and drop.
Actual behavior
https://github.com/user-attachments/assets/f5716330-3ea4-444b-98a2-bc78e9fab3a5
Craft CMS version
5.10.5
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the drag-and-drop ordering behavior in a Craft CMS 5.10.5 structure using level 2 and 3 entries. Start by tracing the structure editor's nested-entry positioning behavior, then verify that dragging an entry keeps its position aligned with the mouse and permits precise reordering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100