diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-11-04 15:26:58 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2020-11-04 18:53:52 +0100 |
commit | 5a9fc749c3eab8d3c93dd282fa89c20a5cb0e994 (patch) | |
tree | ab743319f4de81a18e651cf0ec81e2bba0948e2e | |
parent | a48dbc78f829874190ba062635881a7444d1e5f9 (diff) |
Fix unsightly re-layout delay for media previews
-rw-r--r-- | app/javascript/flavours/glitch/components/media_gallery.js | 1 |
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, }); |