Skip to content

Fix for: Interface Skeleton: Limit the editor width to prevent some blocks to grow infinitely wide - #27646

Closed
ambienthack wants to merge 1 commit into
WordPress:masterfrom
ambienthack:fix/interface-content-overflow
Closed

ambienthack wants to merge 1 commit into
WordPress:masterfrom
ambienthack:fix/interface-content-overflow

Conversation

@ambienthack

Copy link
Copy Markdown
Contributor

Fixes #27622

Description

Added

.interface-interface-skeleton__editor {
  ...
  max-width: 100%;
}

which was previously removed as part of IE11 compatibility fix. It should not affect previous IE11 fix, as it does'n conflict with it. I previously removed it because I mistakenly thought flex: 0 1 100% was enough to limit the width to 100%.

How has this been tested?

Tested on Chrome 87, Windows 11 accoding to steps from #27622
Jetpack Blocks seem not to work in IE11, so on IE11 I tested with Full-width Pullquote

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.

@ambienthack

Copy link
Copy Markdown
Contributor Author

Although max-width: 100%; doesn't conflict with previous IE11 fix, max-width: 100%; doesn't work for nested flexbox in IE11. So, this fix should remove the regression, but may not work for Jetpack Slideshow block in IE11 (if Slideshow were available for IE11).

@jasmussen

Copy link
Copy Markdown
Contributor

Thank you @ambienthack! This is a nice, focused, simple PR, my instinct is it will work.

@Copons @sirreal can you help test this? Thank you.

@jasmussen
jasmussen requested review from Copons and sirreal December 11, 2020 07:11
@jasmussen jasmussen added the [Type] Bug An existing feature does not function as intended label Dec 11, 2020
@ambienthack

ambienthack commented Dec 12, 2020 •

Copy link
Copy Markdown
Contributor Author

Have tested it with Full site editing and it doesn't do well ( I think the same problem was present before IE-related fixes ). Taking this into account, I think we should come up with a better solution. I'm closing this PR.

Edit: actually it is not that bad in Full Site Editing, it overflows just slightly, not 3M pixels overflow. May be a viable temporary fix.

Screenshot_3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interface Skeleton: Limit the editor width to prevent some blocks to grow infinitely wide

2 participants