← 输入框|github.com|刷新
Skip to content

web: stop sorted cards jumping on drop, match project and service drag - #34

Merged
yekta merged 1 commit into
masterfrom
fix/card-drop-jump
Oct 17, 2026
Merged

yekta merged 1 commit into
masterfrom
fix/card-drop-jump

Conversation

@yekta

@yekta yekta commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Fixes cards jumping when you drop them in the sorted project and service lists, and makes projects drag the same way services do.

  • No jump on drop: the drag preview now stays in place after the drop until the reorder reaches the query cache. Before this, the list went back to the old order for a moment, which made the dropped card jump.
  • Services animate: service cards and service groups now use the sortable transform to move into their new place, so the list doesn't snap. This also covers ordering inside groups.
  • Same drag for projects and services: project cards now drag like services. While you drag, the list shows where the card will land, a drag overlay follows the pointer and the source card is dimmed. Cancelling a drag puts the original order back.

…drag

- Keep the drag preview after the drop until the reorder reaches the query cache. Before, the list briefly went back to the old order and the card jumped.
- Animate service cards and service groups into their new place with the sortable transform, so the list no longer snaps.
- Project cards now drag the same way services do: the list shows where the card will land, a drag overlay follows the pointer and the source card is dimmed.
@yekta
yekta merged commit 4e94d19 into master Oct 17, 2026
1 check 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.

1 participant