From 21e49841c3b463f08cb22f22300537c9466fa89e Mon Sep 17 00:00:00 2001 From: Thor Date: Thu, 6 Jul 2023 17:48:00 +0000 Subject: [PATCH] Fixed error in media gallery --- app/javascript/flavours/glitch/components/media_gallery.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/flavours/glitch/components/media_gallery.jsx b/app/javascript/flavours/glitch/components/media_gallery.jsx index b822cb31d..766b4acf8 100644 --- a/app/javascript/flavours/glitch/components/media_gallery.jsx +++ b/app/javascript/flavours/glitch/components/media_gallery.jsx @@ -111,6 +111,10 @@ class Item extends PureComponent { let width = 100; let height = 100; + let top = 'auto'; + let left = 'auto'; + let bottom = 'auto'; + let right = 'auto'; let root = Math.sqrt(size); let numCols = Math.ceil(root);