From 3b31ed5a9a699f3b2964bc8f66b9032db7c237a2 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sun, 1 Dec 2019 20:03:41 +0100 Subject: [PATCH] fix: optimize gif properly --- packages/react/src/utils/index.js | 2 +- packages/react/stories/index.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/react/src/utils/index.js b/packages/react/src/utils/index.js index 34bd6a2f1..474fc5f82 100644 --- a/packages/react/src/utils/index.js +++ b/packages/react/src/utils/index.js @@ -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 diff --git a/packages/react/stories/index.js b/packages/react/stories/index.js index 51c58b2a3..09fd74d47 100644 --- a/packages/react/stories/index.js +++ b/packages/react/stories/index.js @@ -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'