summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-03-19 23:55:27 -0700
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-03-19 23:55:27 -0700
commit46d9c3a22337fedf3ef758e718a2f12c6f95cebc (patch)
tree23993dae06b78972f35c7d74f135a05a26cc7f09 /src
parentfb2e197a7a1e8663255bad8c476e2aa5d8b1a931 (diff)
Set max-width for images based on view width
Diffstat (limited to 'src')
-rw-r--r--src/components/image.js1
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);`