We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 951c19d + d2e71ab commit 85c7192Copy full SHA for 85c7192
1 file changed
utils/createPreviewCollage.js
@@ -22,7 +22,7 @@ const saveProjectPreviewImage = async (_data) => {
22
// Prepare canvas
23
const previewCanvasWidth = thumbWidth * thumbPerRow;
24
const previewCanvasHeight =
25
- thumbHeight * Math.trunc(_data.length / thumbPerRow);
+ thumbHeight * Math.ceil(_data.length / thumbPerRow);
26
// Shout from the mountain tops
27
console.log(
28
`Preparing a ${previewCanvasWidth}x${previewCanvasHeight} project preview with ${_data.length} thumbnails.`
0 commit comments