From 9cb44622a5437e8980b36c78f905d573bfc47624 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 7 Nov 2023 15:27:18 +0200 Subject: [PATCH] btn change --- client/res/templates/header.tpl | 2 ++ client/src/view-helper.js | 4 ++-- client/src/views/modal.js | 2 +- frontend/less/espo/custom.less | 13 +++---------- frontend/less/espo/elements/buttons.less | 9 +++++++++ 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/client/res/templates/header.tpl b/client/res/templates/header.tpl index 874dcb9be0..9e2d3b136f 100644 --- a/client/res/templates/header.tpl +++ b/client/res/templates/header.tpl @@ -21,7 +21,9 @@ {{/if}} {{/if}} + {{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label scope=../scope}}{{/if}}{{/if}} + {{/each}} diff --git a/client/src/view-helper.js b/client/src/view-helper.js index 5a58a421dd..2d705fd9b3 100644 --- a/client/src/view-helper.js +++ b/client/src/view-helper.js @@ -450,12 +450,12 @@ class ViewHelper { } if (iconHtml) { - html = iconHtml + ' ' + html; + html = iconHtml + ' ' + '' + html + ''; } else if (iconClass) { const iconHtml = $('').addClass(iconClass).get(0).outerHTML; - html = iconHtml + ' ' + html; + html = iconHtml + ' ' + '' + html + ''; } const tag = link ? '' : '