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

Fix clipping issue with Instagram embed #10437

Merged
merged 1 commit into from Oct 9, 2018
Jump to file or symbol
Failed to load files and symbols.
+7 −2
Diff settings

Always

Just for now

@@ -23,6 +23,7 @@
max-width: $content-width;
@include break-small() {
// Compensate for side UI width.
.editor-block-list__block-edit {
margin-left: -$block-side-ui-width;
margin-right: -$block-side-ui-width;
@@ -1,10 +1,13 @@
.wp-block-embed {
margin: 0;
// Necessary because we use responsive trickery to set width/height,
// therefore the video doesn't intrinsically clear floats like an image does.
clear: both;
// Apply a min-width, or the embed can collapse when floated.
min-width: $break-mobile / 2;
// Instagram widgets have a min-width of 326px, so go a bit beyond that.
min-width: 360px;
&.is-loading {
display: flex;
@@ -3,7 +3,8 @@
.editor-block-list__block[data-type="core/embed"][data-align="right"] .editor-block-list__block-edit,
.wp-block-embed.alignleft,
.wp-block-embed.alignright {
max-width: $content-width / 2;
// Instagram widgets have a min-width of 326px, so go a bit beyond that.
max-width: 360px;
width: 100%;
}
ProTip! Use n and p to navigate between commits in a pull request.