mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-30 17:20:31 +02:00
gulp changelog image generator fix
This commit is contained in:
@@ -122,10 +122,9 @@ const printChangelog = function (newIcons, modifiedIcons, renamedIcons, pretty =
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const generateIconsPreview = function(files, destFile, cb, columnsCount = 17) {
|
const generateIconsPreview = function(files, destFile, cb, columnsCount = 17, paddingOuter = 5) {
|
||||||
|
|
||||||
const padding = 29,
|
const padding = 29,
|
||||||
paddingOuter = 5,
|
|
||||||
iconSize = 24;
|
iconSize = 24;
|
||||||
|
|
||||||
const iconsCount = files.length,
|
const iconsCount = files.length,
|
||||||
@@ -366,7 +365,7 @@ gulp.task('changelog-image', function (cb) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if(newIcons.length > 0) {
|
if(newIcons.length > 0) {
|
||||||
generateIconsPreview(newIcons, `packages/tabler-icons-${newVersion}.svg`, cb, 6);
|
generateIconsPreview(newIcons, `packages/tabler-icons-${newVersion}.svg`, cb, 6, 24);
|
||||||
} else {
|
} else {
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user