Skip to content

Node.js based forum software built for the modern web

fix: add missing px

Barış Soner Uşaklıd02ecc6ffe3d
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js
index 07fe08da2c..79fdf379ee 100644
--- a/public/src/modules/helpers.common.js
+++ b/public/src/modules/helpers.common.js
@@ -174,7 +174,7 @@ module.exports = function (utils, Benchpress, tx, relative_path) {
}
const sizeEscaped = escape(size);
const fontSize = (parseInt(size, 10) / 2) || 16;
- const icon = category.icon ? `<i class="fa fa-fw ${escape(category.icon)}" style="line-height: ${sizeEscaped};"></i>` : '';
+ const icon = category.icon ? `<i class="fa fa-fw ${escape(category.icon)}" style="line-height: ${sizeEscaped}px;"></i>` : '';
return `<span class="icon d-inline-flex justify-content-center align-items-center align-middle ${rounded}" style="${generateCategoryBackground(category)} width:${sizeEscaped}; height: ${sizeEscaped}; font-size: ${fontSize}px;">${icon}</span>`;
}