Fixed error in media gallery

Thor 10 months ago
parent bedb91a2bd
commit 21e49841c3
  1. 4
      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);

Loading…
Cancel
Save