From 9236dfae93c1acaf3c94a3d8ca16286c7d3ddffe Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Sun, 21 Jan 2024 01:58:35 +0900 Subject: [PATCH] Fix media gallery grid layout --- app/javascript/mastodon/components/media_gallery.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {