-
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
Blocks: Movers on left floated content overlapping next elements controls #3868
Comments
Really really good bug report. The big issue here is that side controls appear on hover. When those controls stack, you can't decide which layer of controls you want to deal with. One hacky fix could be making sure that whenever a block is floated, the hover controls can only appear if the block has first been selected. But I'm not sure this would fix it — the non-floated quote block would then stack below. Hmmm. Any ideas here, @youknowriad? Can we make it so the floated image block prevents any other block than itself to be "hovered"? I.e. you can't hover the text block "through" the image block? Another option is to rethink how the controls work generally on floated (or future nested blocks, for that matter). I just posted some mockups in #428 (comment). The idea, applied to this issue, would be that any floated block would get the inline, "mobile UI". That way you could still use the controls on the image because they wouldn't stack. A plan B would be to simply only allow those side controls to appear if you've first selected a block. |
I tried playing with pointer-events and such but couldn't make it work properly :(. The plan B/C should be tried I think. But I think no matter what we do we'll always have a similar issue. The mobile controls of a floated/non-floated block can still overlap |
Not if we go with the mobile controls that appear onselect and below the block surely? |
This is not sufficient on its own but yes if they appear only on select then yes the can't overlap |
This issue appears to have been fixed with the recent floats refactor: The issue with the right-aligned toolbar will be fixed when #5212 is merged. Noting that the side-UI for floated items still isn't ideal, the movers for floated blocks should perhaps be optimized, the buttons nonetheless work now as expected. |
Thanks for fixing 🌟 |
Issue Overview
Movers on left floated content overlapping next elements controls.
Steps to Reproduce (for bugs)
Browser: Chrome.
System: macOS.
Expected Behavior
It's possible to move the block added after the floated image.
Current Behavior
It's not possible to move the block added after the floated image because movers from the image take precedence.
Screenshots / Video
/cc @jasmussen
The text was updated successfully, but these errors were encountered: