From 5a9fc749c3eab8d3c93dd282fa89c20a5cb0e994 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 4 Nov 2020 15:26:58 +0100 Subject: [PATCH] Fix unsightly re-layout delay for media previews --- app/javascript/flavours/glitch/components/media_gallery.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js index 96042f07a..890a422d3 100644 --- a/app/javascript/flavours/glitch/components/media_gallery.js +++ b/app/javascript/flavours/glitch/components/media_gallery.js @@ -297,6 +297,7 @@ class MediaGallery extends React.PureComponent { this._setDimensions(); } }, 250, { + leading: true, trailing: true, });