From b48477ea68de503a519887e5a6c4a0a230fad809 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Thu, 29 Apr 2021 14:58:16 -0400 Subject: [PATCH] nowiki fix --- css/rulesAssistant/raSummary.css | 4 ++++ src/js/rulesAssistantSummary.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/css/rulesAssistant/raSummary.css b/css/rulesAssistant/raSummary.css index 949506e6592..129c552932a 100644 --- a/css/rulesAssistant/raSummary.css +++ b/css/rulesAssistant/raSummary.css @@ -7,6 +7,10 @@ text-align: left; border-collapse: separate; empty-cells: hide; + +} +.ra-sum:nth-child(even) { + background-color: #f2f2f2; } .ra-sum-cell { diff --git a/src/js/rulesAssistantSummary.js b/src/js/rulesAssistantSummary.js index d52eb07432b..796fece3ec4 100644 --- a/src/js/rulesAssistantSummary.js +++ b/src/js/rulesAssistantSummary.js @@ -92,7 +92,8 @@ new App.DomPassage("Rules Assistant Summary", () => { function ruleSetValueToString(v) { if (typeof v === 'object') { if (v.hasOwnProperty('cond') && v.hasOwnProperty('val')) { - return `<nowiki>${v.cond}</nowiki> ${v.val}`; + console.log(v) + return `${v.cond} ${v.val}`; } else if (v.hasOwnProperty('min') && v.hasOwnProperty('max')) { return `${v.min} to ${v.max}`; } else { -- GitLab