From bf7a44a8d0486ca3385b9cd77db016a8057738ce 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 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) {