Skip to content

EspoCRM – Open Source CRM Application

Dashlet menu icons remove whitespace

Yurii9f6989a8d6e5
diff --git a/client/res/templates/dashlet.tpl b/client/res/templates/dashlet.tpl
index acbb8bc635..a2694bd9a1 100644
--- a/client/res/templates/dashlet.tpl
+++ b/client/res/templates/dashlet.tpl
@@ -31,14 +31,12 @@
tabindex="0"
{{#each data}} data-{{hyphen @key}}="{{./this}}"{{/each}}
>
- {{#if iconHtml}}{{{iconHtml}}}
- {{else}}
+ {{~#if iconHtml}}{{{iconHtml}}}
+ {{~else~}}
{{~#if iconClass~}}
- <span class="{{iconClass}}"></span>
- {{~else~}}
- <span class="empty-icon">&nbsp;</span>
+ <span class="{{iconClass}} item-icon"></span>
{{~/if~}}
- {{/if}}
+ {{~/if~}}
<span class="item-text">{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label}}{{/if}}{{/if}}</span>
</a>
</li>