Fixed media sites using oEmbed

kick

Well-known member
Affected version
2.1.10 Patch 2
When using oEmbed, which does not use a template, it starts breaking the layout with some services.
When they have different sizes, the video is adjusted, for example, in the control panel it simply processes the div tag.
1591550958495.webp
1591551034720.webp
1591551086990.webp
But with the public part everything is better, but here another problem arises
1591551213729.webp
And as we see it creeps out of borders as on mobile phones.
1591551268166.webp
When the template and class were used
<div class = "bbMediaWrapper"> and was fully adaptive.
Then they did not climb out for their size.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.0 RC1).

Change log:
Ensure that oEmbed iframes and similar elements have a max-width of 100%
There may be a delay before changes are rolled out to the XenForo Community.
 
While we have worked around this a bit, note that this is sort of a failing of the oEmbed provider in this example. Their embed output involves a totally fixed size iframe. We can limit the width, but it also has a height applied. As the oEmbed system is generic, we can't really assume anything about the expected iframe height, so we can't change that (which may lead to blank space being visible around the iframe contents).
 
Top Bottom