Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #864: Fix issue in 'Video' widget width in <amp-iframe>. #928

Merged
merged 1 commit into from
Feb 4, 2018

Conversation

kienstra
Copy link
Contributor

@kienstra kienstra commented Feb 3, 2018

Request For Review

Hi @westonruter,
Could you please review this pull request, which addresses the issue we discussed on PR #921 for Issue #864?

This adds "max-width:100%" to all <amp-iframe> elements, to correct an overflow issue with 'Video' widgets that don't have embed handlers, like:

https://videopress.com/v/DK5mLrbr

over-container

Also, happy belated Groundhog Day 😄

Video widgets that use URLs without an AMP embed handler use:
<amp-iframe>
But these can be too wide for the sidebar.
So apply the same fix as with <amp-video>
Set a style="max-width:100%".
This prevents widgets from overflowing the container.
AMP_Style_Sanitizer will move it to the amp-custom style.
@westonruter westonruter added this to the v0.7 milestone Feb 4, 2018
@westonruter westonruter merged commit 33a94f8 into develop Feb 4, 2018
@westonruter westonruter deleted the fix/864-video-styling-iframe branch February 5, 2018 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants