Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

firefox image width fix #732

Merged
merged 2 commits into from
Sep 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/templates/blogPostTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ const PostWrapper = styled.div`
max-width: 100%;
max-height: 100%;
}
-moz-document url-prefix() {
/* Firefox doesn't respect max-width in certain situations */
img {
width: 100%;
max-width: -moz-max-content;
}
}
font-family: ${props => props.theme.fontBody};
color: ${props => props.theme.fontDark};
`
Expand Down