Skip to content

Node.js based forum software built for the modern web

closes #6206

Barış Soner Uşaklıff72d022c1ac
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.js
index 07515b9834..d682faf947 100644
--- a/public/src/modules/helpers.js
+++ b/public/src/modules/helpers.js
@@ -127,11 +127,11 @@
category.children.forEach(function (child) {
if (child && !child.isSection) {
var link = child.link ? child.link : (relative_path + '/category/' + child.slug);
- html += '<a href="' + link + '">' +
- '<span class="fa-stack fa-lg">' +
- '<i style="color:' + child.bgColor + ';" class="fa fa-circle fa-stack-2x"></i>' +
- '<i style="color:' + child.color + ';" class="fa fa-stack-1x ' + child.icon + '"></i>' +
- '</span><small>' + child.name + '</small></a> ';
+ html += '<span class="category-children-item pull-left">' +
+ '<div class="icon pull-left" style="' + generateCategoryBackground(child) + '">' +
+ '<i class="fa fa-fw ' + child.icon + '"></i>' +
+ '</div>' +
+ '<a href="' + link + '"><small>' + child.name + '</small></a></span>';
}
});
html = html ? ('<span class="category-children">' + html + '</span>') : html;