diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-19 23:55:27 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-03-19 23:55:27 -0700 |
commit | 46d9c3a22337fedf3ef758e718a2f12c6f95cebc (patch) | |
tree | 23993dae06b78972f35c7d74f135a05a26cc7f09 /src | |
parent | fb2e197a7a1e8663255bad8c476e2aa5d8b1a931 (diff) |
Set max-width for images based on view width
Diffstat (limited to 'src')
-rw-r--r-- | src/components/image.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/image.js b/src/components/image.js index df5ddb3..a84d418 100644 --- a/src/components/image.js +++ b/src/components/image.js @@ -12,6 +12,7 @@ const imgContainerStyle = css` export const Image = ({ imgUrl, caption, noShadow }) => { const imgStyle = css` max-height: 300px; + max-width: 80vw; align-self: flex-end; ${!noShadow ? `box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);` |