-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
List View: Displace list view items when dragging (a bit more WYSIWYG) (
#56625) * Include earlier experiment to make drag chip resemble the list view item * Try displacing list view items via transform: translateY while dragging * Try adding a bit of styling when nesting * Try to fix tests * Offset the top of the table to match the displacement * Improve the experience when beginning to drag a block * Smoothly hide gap when dragging outside of the list view area * Merge in changes from drag to collapsed block to expand PR * Try collapsing selected blocks down to a single row space while dragging * Fix jumpiness in Safari * Try making styling match the selected state * Try smoothly dropping to the final position * Fix transitions above dragged items * Fix flickering issue in Safari * Try a transparent background color * Fix drag behaviour in navigation block * Add vertical drop indicator * Try using existing drop indicator line * Add reduced motion, fix e2e test * Tidy up classname for drag chip in prep for subsequent changes * Remove indent from drop chip, ensure indent is applied to the position * Try updating the drag chip to use a border * Try drop indicator line as preview of final list item * Try offsets for nesting level of drop indicator, and use darker color if adjacent block has selected branch * Use drag chip as on trunk, but with opacity of 0.8 * Consolidate drop indicator logic * Fix drop indicator when dragging files * Don't add nesting classname when dragging files as the editor thinks we can nest for any block * Move displacement logic to a helper function, add tests * Remove unneeded changes from useMovingAnimation * Add explanatory comments * Try a timeout for the list view drop zone updates of 50ms instead of 200ms
- Loading branch information
1 parent
6ab0f47
commit 2997bad
Showing
15 changed files
with
853 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
2997bad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flaky tests detected in 2997bad.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7618449979
📝 Reported issues:
/test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js
/test/e2e/specs/interactivity/directive-on-document.spec.ts