-
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
Force Link UI to appear below a link if one is selected #6113
Conversation
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.
Design wise this seems to have solved the dancing link issue. I'll let a code review happen also though.
Nevermind, I didn't check the branch out properly. |
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.
See #6113 (comment). I think we can drop the calculation if none of the parents
is a link (it's only used for links and there is no way this could be generalised). We can't just look at the element
because there might be nested tags.
2df92d5
to
3003793
Compare
Thanks @iseulde. I've fixed the issue with nested tags—great catch. We can't drop the |
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.
Looks good to go, but please fix the lining error first. :)
Add custom logic that makes the FormatToolbar render the Link UI under the link node if a link is focused. If something else is focused, position the Link UI underneath the cursor or selection. This stops the Link UI from dancing around when you click on a link.
3003793
to
c2d99d8
Compare
Thanks @iseulde! |
Fixes #6028 (comment).
Before:
Now: