refactor: half size icons

This commit is contained in:
Barış Soner Uşaklı
2022-10-14 21:03:34 -04:00
parent 08454f66c9
commit 92e7653ebf

View File

@@ -85,7 +85,7 @@ module.exports = function (utils, Benchpress, relative_path) {
return '';
}
return `<span class="icon d-inline-flex justify-content-center align-items-center align-middle ${rounded}" style="${generateCategoryBackground(category)} width:${size}; height: ${size};">${category.icon ? `<i class="fa fa-fw ${category.icon}"></i>` : ''}</span>`;
return `<span class="icon d-inline-flex justify-content-center align-items-center align-middle ${rounded}" style="${generateCategoryBackground(category)} width:${size}; height: ${size}; font-size: ${parseInt(size, 10) / 2}px;">${category.icon ? `<i class="fa fa-fw ${category.icon}"></i>` : ''}</span>`;
}
function generateCategoryBackground(category) {