-
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: Broken layout when multiple floated blocks in succession #3870
Comments
Great ticket. Yes, this seems to have happened because we have no max-width on the main container, and so we have emulated the floats using left margins instead. We can "hack our way through this" by using It's been suggested a number of times that iframing the editor is not feasible (#2420). But if we were able to do that, at least it would simplify the math used to calculate the widths of A while back Matías had a version where wide and fullwide images were sized using JavaScript. Not the most ideal thing, but perhaps it's time to revisit that? CC: @youknowriad @aduth @mtias |
I also think we should revisit using a fixed width for the content container and use JavaScript to compute the wide and full-wide widths. |
This issue seems to have been almost completely fixed by the recent floats refactor, yay! As is apparent from the GIF above, the remaining issue is with the block toolbar, which there simply isn't room for in a nice way, as that toolbar also respects the floats. I'm going to look into that, there may be an easy fix. |
Fixes #3870 When you have multiple small blocks floated left, each blocks get a more and more indented block toolbar. At some point the block toolbar will be cropped by the viewport itself. This PR adresses that by making it always leftalign. There appear to be no side-effects, but it would be good to test.
Awesome work, one fix to close them all 🗡 |
Steps to Reproduce (for bugs)
Browser: Chrome
System: macOS
Expected Behavior
Blocks are properly aligned.
Current Behavior
Broken layout when multiple floated blocks in succession.
Screenshots / Video
/cc @jasmussen
The text was updated successfully, but these errors were encountered: