Skip to content

Commit

Permalink
Try: Fix embed iframe sizing issue. (#40213)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Sep 6, 2022
1 parent c42291c commit 8c87431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/sandbox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ const style = `
}
html,
body,
body > div,
body > div iframe {
body > div {
width: 100%;
}
html.wp-has-aspect-ratio,
body.wp-has-aspect-ratio,
body.wp-has-aspect-ratio > div,
body.wp-has-aspect-ratio > div iframe {
width: 100%;
height: 100%;
overflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */
}
Expand Down

0 comments on commit 8c87431

Please sign in to comment.