Skip to content

🐛 [Amp story panning media] Set width and height of amp img element #36340

Merged
processprocess merged 3 commits intoampproject:mainfrom
processprocess:panning-media-fix
Oct 13, 2021
Merged

🐛 [Amp story panning media] Set width and height of amp img element #36340
processprocess merged 3 commits intoampproject:mainfrom
processprocess:panning-media-fix

Conversation

@processprocess
Copy link
Copy Markdown
Contributor

Specified width and height on the amp-img element prevents the image from being clipped.
Adding inline-block to the inner img element ensures consistent cross-browser centering.

@amp-owners-bot
Copy link
Copy Markdown

Hey @gmajoulet, @newmuis! These files were changed:

extensions/amp-story-panning-media/0.1/amp-story-panning-media.css
extensions/amp-story-panning-media/0.1/amp-story-panning-media.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants