diff --git a/app/javascript/mastodon/components/media_gallery.jsx b/app/javascript/mastodon/components/media_gallery.jsx index b7132482ac1..c1aa59f70e9 100644 --- a/app/javascript/mastodon/components/media_gallery.jsx +++ b/app/javascript/mastodon/components/media_gallery.jsx @@ -22,7 +22,7 @@ const messages = defineMessages({ }); const colCount = function(size) { - return Math.max(Math.floor(Math.sqrt(size)), 2); + return Math.max(Math.ceil(Math.sqrt(size)), 2); }; const rowCount = function(size) {