1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Fix media gallery grid layout

This commit is contained in:
Jeong Arm 2024-01-21 01:58:35 +09:00
parent 01ebfa0c46
commit bf7a44a8d0

View file

@ -22,7 +22,7 @@ const messages = defineMessages({
}); });
const colCount = function(size) { 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) { const rowCount = function(size) {