Grammalecte  Check-in [33a93940c6]

Overview
Comment:[fx] gc panel: fix text truncation due to the new underlining method
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 33a93940c6f12bc23022eaad719306a324090dc6141b579ba6b0db1d0e42ef39
User & Date: olr on 2020-03-28 15:14:36
Other Links: manifest | tags
Context
2020-03-28
15:51
[fr] ajustements et faux positif check-in: 4c8b7d95bc user: olr tags: fr, trunk
15:14
[fx] gc panel: fix text truncation due to the new underlining method check-in: 33a93940c6 user: olr tags: fx, trunk
10:17
[fr] ajustements check-in: da75f13293 user: olr tags: fr, trunk
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [79100c1e89] to [e6011e0390].

   357    357               xNodeErr.dataset.gc_message = oErr['sMessage'];
   358    358               xNodeErr.dataset.gc_url = oErr['URL'];
   359    359               if (xNodeErr.dataset.gc_message.includes(" #")) {
   360    360                   xNodeErr.dataset.line_id = oErr['sLineId'];
   361    361                   xNodeErr.dataset.rule_id = oErr['sRuleId'];
   362    362               }
   363    363               xNodeErr.dataset.suggestions = oErr["aSuggestions"].join("|");
   364         -            if (oErr.hasOwnProperty("aColor")) {
          364  +            if (oErr.hasOwnProperty("aColor")  &&  Array.isArray(oErr["aColor"])  &&  oErr["aColor"].length === 3) {
   365    365                   let sHue = oErr["aColor"][0].toString();
   366    366                   let sSat = oErr["aColor"][1].toString();
   367    367                   let sLum = oErr["aColor"][2].toString();
   368    368                   xNodeErr.style.color = `hsl(${sHue}, ${sSat}%, 15%)`;
   369    369                   xNodeErr.style.backgroundColor = `hsl(${sHue}, ${sSat}%, 85%)`;
   370    370                   xNodeErr.style.borderBottom = `solid 2px hsl(${sHue}, ${sSat}%, ${sLum}%)`;
   371    371               }