mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-08 19:35:11 +01:00
Fix media gallery grid layout
This commit is contained in:
parent
5d686826dd
commit
9236dfae93
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user