Skip to content

Prevent container overflow for images#47

Merged
ArtOfCode- merged 1 commit intoArtOfCode-:masterfrom
luap42:patch-1
Dec 15, 2019
Merged

Prevent container overflow for images#47
ArtOfCode- merged 1 commit intoArtOfCode-:masterfrom
luap42:patch-1

Conversation

@luap42
Copy link
Copy Markdown
Contributor

@luap42 luap42 commented Dec 15, 2019

When an image is larger than the surrounding container, it will overflow it by default. This change will prevent this from happening by resizing the image to 100% when it is larger than the container.

Example for where this happened: http://writing.codidact.com/questions/36723

This should not have any side effects and has been tested in latest Firefox, Chrome and Edge.

When an image is larger than the surrounding container, it will overflow it by default. This change will prevent this from happening by resizing the image to 100% when it is larger than the container.
@ArtOfCode- ArtOfCode- merged commit 740d6c5 into ArtOfCode-:master Dec 15, 2019
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