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:
parent
01ebfa0c46
commit
bf7a44a8d0
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue