Skip to content

Commit

Permalink
Try: Fix embed iframe sizing issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Apr 11, 2022
1 parent 7a72ee7 commit 7ed4943
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 7ed4943

Please sign in to comment.