about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-11-04 15:26:58 +0100
committerThibG <thib@sitedethib.com>2020-11-04 18:53:52 +0100
commit5a9fc749c3eab8d3c93dd282fa89c20a5cb0e994 (patch)
treeab743319f4de81a18e651cf0ec81e2bba0948e2e /app
parenta48dbc78f829874190ba062635881a7444d1e5f9 (diff)
Fix unsightly re-layout delay for media previews
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/components/media_gallery.js1
1 files changed, 1 insertions, 0 deletions
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,
   });