From 3160b3c25e7c7fd8c023f9ba97ca5bf53836af12 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sun, 16 Feb 2020 13:45:58 -0500 Subject: [PATCH] fix bolding --- src/js/slaveInteract.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/js/slaveInteract.js b/src/js/slaveInteract.js index 75eb5cae4a3..f4909fd8bb1 100644 --- a/src/js/slaveInteract.js +++ b/src/js/slaveInteract.js @@ -244,8 +244,11 @@ App.UI.SlaveInteract.drugs = function(slave) { } let title = document.createElement('div'); - title.textContent = `Drugs: ${capFirstChar(slave.drugs)}`; - title.style.fontWeight = "bold"; + title.textContent = `Drugs: `; + let chosenDrug = document.createElement('span'); + chosenDrug.textContent = `${capFirstChar(slave.drugs)}`; + chosenDrug.style.fontWeight = "bold"; + title.append(chosenDrug); el.append(title); el.appendChild(generateRow(drugOptions)); @@ -1047,4 +1050,5 @@ App.UI.SlaveInteract.refreshAll = function(slave) { App.UI.SlaveInteract.bloating(slave); App.UI.SlaveInteract.fertility(slave); App.UI.SlaveInteract.useSlaveDisplay(slave); + App.UI.SlaveInteract.drugs(slave); }; -- GitLab