Skip to content

Commit

Permalink
fix: optimize gif properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 1, 2019
1 parent 2d661b8 commit 3b31ed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const isSmall = cardSize => cardSize === 'small'
export const imageProxy = url =>
REGEX_LOCALHOST.test(url)
? url
: `https://images.weserv.nl/?url=${encodeURIComponent(url)}&l=9&af&il`
: `https://images.weserv.nl/?url=${encodeURIComponent(url)}&l=9&af&il&n=-1`

export const isLazySupported = !isSSR && 'IntersectionObserver' in window

Expand Down
5 changes: 4 additions & 1 deletion packages/react/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ storiesOf('setData', module)
.add('object', () =>
createStoryEntry({
setData: {
image: { url: 'https://cdn.microlink.io/logo/banner.png' },
image: {
url:
'https://media.tenor.com/images/5d4791abbfa98823cdbcd82b7ece2ced/tenor.gif'
},
title: 'Microlink Query Language',
description: 'Turns any web into data',
url: 'https://docs.microlink.io'
Expand Down

0 comments on commit 3b31ed5

Please sign in to comment.