Icon padding in sidebar

Hi,

in webix.js from line 50369 (v8.1) we have icon function:

icon: function (obj) {
var style = “”;
if (obj.$level > 2) {
style = “style=“padding-left:” + 40 * (obj.$level - 2) + “px””;
}
if (obj.icon) return "<span class=‘webix_icon webix_sidebar_icon " + obj.icon + "’ " + style + “>”;
return "<span " + style + “>”;
}

This additional padding is pain, when styling f.i. sidemenu beyond level 2.

1 Like