-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mini] drag and drop: fix misplaced drop indicator #67434
Conversation
Size Change: +7 B (0%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
Flaky tests detected in 8f489b4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12089232119
|
if ( isRTL() ) { | ||
// non vertical, rtl | ||
left = nextRect ? nextRect.right : previousRect.left; | ||
width = |
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.
I don't understand why you removed the isRTL case?
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.
We could move it inline on L135 - isRTL() ? previousRect.left - nextRect.right : nextRect.left - previousRect.right;
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.
I misread it, I though it's the same and only left
was different.
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.
Fixed
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
LGTM, thanks!
Thanks! |
Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: ntsekouras <ntsekouras@git.wordpress.org>
What?
Why?
It's a bug.
How?
We should ensure the width of the popover anchor does not become negative when the next and previous item are on a different line.
Perhaps we should explore showing the inserter in between the line as a follow-up.
Testing Instructions
Create a block with inner block showing horizontally and make the items wrap. Drag an item to the end of the first line.
Testing Instructions for Keyboard
Screenshots or screencast