Closed pstonier closed 6 years ago
There is a little conflict with recent CSS changes, could you do an iteration with those? Have you tested this against the embed blocks?
Yes, I've tested these against embed blocks. Videos look great. Some things like Instragram and Twitter may need some additional considerations as the content does not span the full width of the area provided.
Awesome, thanks I merged this.
These styles help fix the issue where embedded content falls outside of the layout.
Lines 120-135 anticipate this PR for bringing in classes for embed types(https://github.com/WordPress/gutenberg/pull/4118) and Gutenberg updating to create parity between the editor view of an embedded block vs the front-end saved view where the is a
<div class="wp-block-embed__wrapper">
inside the<figure>
which is a necessary piece to maintain the aspect ratio for videos.