diff --git a/app/javascript/mastodon/components/media_gallery.jsx b/app/javascript/mastodon/components/media_gallery.jsx index 248e046e47..5eeab046da 100644 --- a/app/javascript/mastodon/components/media_gallery.jsx +++ b/app/javascript/mastodon/components/media_gallery.jsx @@ -17,7 +17,7 @@ import { formatTime } from 'mastodon/features/video'; import { autoPlayGif, displayMedia, useBlurhash } from '../initial_state'; 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) {