-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Interface Skeleton: Limit the editor width to prevent some blocks to grow infinitely wide #27622
Comments
cc @jasmussen in case you have an idea for a potential fix here. |
Yep, thanks, we are exploring a solution in #26944 (comment). |
@Copons can you please specify what version of jetpack you are using? Also, are you using TT1 or TT1-blocks (not sure if it matters)? |
Figured it out, |
@ambienthack the colors are just a different admin color scheme (you can change it in Users > Profile) 🙂 Anyway you're right: Jetpack includes the fix. When I tested it before opening the issue, I think I was using an old Jetpack master that didn't have the fix. I'll update the repro steps to mention that we need to disable the |
Created a PR #27646. Screenshot of slideshow block on IE11 (the block on the same wp installation works in other browsers) |
I made a small research and maybe |
Created another PR #27695 |
100% max-width works well. ie11 is deprecated anyway. |
Describe the bug
With #25884, some blocks were somehow able to exceed the editor boundaries and, when set to full width, gain a width of literally millions of pixels, making the editor unusable.
In #26552 we added a
max-width: 100%
to.interface-interface-skeleton__editor
which seemed to fix the issue.The fix was then removed in #26944 because not compatible with IE11.
So, again some blocks can become infinitely wide.
Empirically, this seems to happen with slideshow blocks (see for example the Slideshow block included in Jetpack).
To reproduce
Note: I'll mention Jetpack in the test steps because it's the one plugin I'm familiar with.
Users have reported that the issue affects other slideshow blocks, but they might not necessarily be openly available for testing.
Feel free to comment with details on how to test with other blocks, and I'll be happy to update these steps to include them as well.
Steps to reproduce the behavior:
.interface-interface-skeleton__editor
and disable themax-width: 100%
rule. That is provided by Jetpack exactly to fix this issue.Expected behavior
The slideshow block should have been as wide as the editor.
Screenshots
Editor version (please complete the following information):
Desktop (please complete the following information):
Additional context
Given the original fix was removed because not compatible with IE11, let's make sure to test the new fix on IE11 as well!
The text was updated successfully, but these errors were encountered: