Index: gc_lang/fr/webext/content_scripts/panel_lxg.css ================================================================== --- gc_lang/fr/webext/content_scripts/panel_lxg.css +++ gc_lang/fr/webext/content_scripts/panel_lxg.css @@ -54,10 +54,15 @@ font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif; color: hsl(0, 0%, 50%); } .grammalecte_lxg_morph_list { padding: 2px 0 10px 20px; +} +.grammalecte_lxg_morph_elem_inline { + display: inline-block; + font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif; + color: hsl(0, 0%, 0%); } .grammalecte_lxg_morph_elem { font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif; color: hsl(0, 0%, 0%); } Index: gc_lang/fr/webext/content_scripts/panel_lxg.js ================================================================== --- gc_lang/fr/webext/content_scripts/panel_lxg.js +++ gc_lang/fr/webext/content_scripts/panel_lxg.js @@ -49,11 +49,11 @@ _createTokenNode (oToken) { let xTokenNode = oGrammalecte.createNode("div", {className: "grammalecte_lxg_token_block"}); xTokenNode.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_token grammalecte_lxg_token_" + oToken.sType, textContent: oToken.sValue})); xTokenNode.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_token_colon", textContent: ":"})); if (oToken.aLabel.length === 1) { - xTokenNode.appendChild(document.createTextNode(oToken.aLabel[0])); + xTokenNode.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem_inline", textContent: oToken.aLabel[0]})); } else { let xTokenList = oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_list"}); for (let sLabel of oToken.aLabel) { xTokenList.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem", textContent: "• " + sLabel})); }