Skip to content

Node.js based forum software built for the modern web

Revert "fix: add missing px"

Barış Soner Uşaklıb883909c28a6
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js
index 79fdf379ee..07fe08da2c 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}px;"></i>` : '';
+ const icon = category.icon ? `<i class="fa fa-fw ${escape(category.icon)}" style="line-height: ${sizeEscaped};"></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>`;
}