about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/javascript/flavours/glitch/components/media_gallery.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js
index 89f0af1f8..6a0500cd5 100644
--- a/app/javascript/flavours/glitch/components/media_gallery.js
+++ b/app/javascript/flavours/glitch/components/media_gallery.js
@@ -143,7 +143,7 @@ class Item extends React.PureComponent {
     let width  = 50;
     let height = 100 / Math.ceil(size/2);
 
-    if (size === 1) {
+    if (size === 1 || size % 2 == 1 && index == 0) {
       width = 100;
     }