mirror of https://github.com/mastodon/mastodon
Fix media gallery grid layout
This commit is contained in:
parent
cfa9ae036f
commit
56ccdc022f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue