mirror of
https://github.com/mastodon/mastodon.git
synced 2024-05-18 01:52:43 +00:00
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) {
|
||||
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