about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-18 16:41:22 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commitfb47b6e120b735a6fb1e9358cc2856072b1bd295 (patch)
treec1e13f4606df83b42b0bb492acac4e21f1f20ec5 /app/javascript/flavours
parent71302f6dec5bba30f9175052d56c4ec43cd7bdfb (diff)
Make sure topmost image fills the gap in an odd-numbered media set.
Diffstat (limited to 'app/javascript/flavours')
-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;
     }