Fix media gallery grid layout

This commit is contained in:
Jeong Arm 2024-01-21 01:58:35 +09:00
parent cfa9ae036f
commit 56ccdc022f
1 changed files with 1 additions and 1 deletions

View File

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