From: Dominik Csapak Date: Thu, 22 Feb 2024 14:29:41 +0000 (+0100) Subject: objects: use font-weight for bold text X-Git-Url: https://git.proxmox.com/?p=pmg-gui.git;a=commitdiff_plain;h=107844176f68f9526ea59ef2280199a7bc4b4815 objects: use font-weight for bold text mdn[0] recommends using `font-weight: bold;` for making the text actually bold While it has the same effect often, it depends on the font and browser if the font is rendered bold in a tag. 0: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b Signed-off-by: Dominik Csapak --- diff --git a/js/ObjectGroup.js b/js/ObjectGroup.js index d72d47c..8c72dd2 100644 --- a/js/ObjectGroup.js +++ b/js/ObjectGroup.js @@ -43,7 +43,7 @@ Ext.define('PMG.ObjectGroup', { me.down('#modeBox').setHidden(true); me.down('#whatWarning').setHidden(true); } else { - let html = '' + Ext.String.htmlEncode(me.ogdata.name) + ''; + let html = '' + Ext.String.htmlEncode(me.ogdata.name) + ''; html += "

"; html += Ext.String.htmlEncode(Ext.String.trim(me.ogdata.info)); @@ -245,7 +245,7 @@ Ext.define('PMG.ObjectGroup', { items: [ { xtype: 'box', - html: `${gettext("Match if")}`, + html: `${gettext("Match if")}`, }, { xtype: 'pmgMatchModeSelector',