Skip to content

Commit

Permalink
Try: Cover position fix round 2 (#28653)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored and ockham committed Feb 3, 2021
1 parent bff5496 commit 34d8338
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/block-library/src/embed/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
}
}

// Supply a min-width when inside a cover block, to prevent it from collapsing.
.wp-block-cover .wp-block-embed {
min-width: 320px;
min-height: 240px;
}

.wp-block-embed {
// Supply caption styles to embeds, even if the theme hasn't opted in.
// Reason being: the new markup, figcaptions, are not likely to be styled in the majority of existing themes,
Expand Down

0 comments on commit 34d8338

Please sign in to comment.