diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-18 16:41:22 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | fb47b6e120b735a6fb1e9358cc2856072b1bd295 (patch) | |
tree | c1e13f4606df83b42b0bb492acac4e21f1f20ec5 /app/javascript/flavours/glitch/components | |
parent | 71302f6dec5bba30f9175052d56c4ec43cd7bdfb (diff) |
Make sure topmost image fills the gap in an odd-numbered media set.
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r-- | app/javascript/flavours/glitch/components/media_gallery.js | 2 |
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; } |