From 34b08796def74db0df822c8e04d1829a4f6a0321 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 96042f07a9..890a422d3c 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, });