Fix media gallery grid layout

This commit is contained in:
Jeong Arm 2024-01-21 01:58:35 +09:00
parent 5d686826dd
commit 9236dfae93

View File

@ -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) {