From 5e4698de0966782c85afe403bbc5f05949297fd4 Mon Sep 17 00:00:00 2001 From: hppeng Date: Wed, 10 Aug 2022 17:15:47 -0700 Subject: [PATCH] Undo spaces deletion causing weird display behavior --- js/atree.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/atree.js b/js/atree.js index 514ba07..da469b3 100644 --- a/js/atree.js +++ b/js/atree.js @@ -1207,7 +1207,7 @@ function generateTooltip(container, node_elem, ability, atree_map) { } else { cost.innerHTML = reqYes; } - cost.innerHTML += "Ability Points:" + (maxAP - apUsed) + "/" + ability.cost; + cost.innerHTML += "Ability Points: " + (maxAP - apUsed) + "/" + ability.cost; container.appendChild(cost); // archetype req @@ -1218,7 +1218,7 @@ function generateTooltip(container, node_elem, ability, atree_map) { } else { archReq.innerHTML = reqNo; } - archReq.innerHTML += "Min" + ability.archetype + " Archetype: " + archChosen + "/" + ability.archetype_req; + archReq.innerHTML += "Min " + ability.archetype + " Archetype: " + archChosen + "/" + ability.archetype_req; container.appendChild(archReq); } @@ -1230,14 +1230,14 @@ function generateTooltip(container, node_elem, ability, atree_map) { } else { dependency.innerHTML = reqNo; } - dependency.innerHTML += "Required Ability:" + atree_map.get(ability.dependencies[i]).ability.display_name; + dependency.innerHTML += "Required Ability: " + atree_map.get(ability.dependencies[i]).ability.display_name; container.appendChild(dependency); } // blockers for (let i = 0; i < blockedBy.length; i++) { let blocker = make_elem("p", ["scaled-font", "my-0", "mx-1"], {}); - blocker.innerHTML = reqNo + "Blocked By:" + blockedBy[i]; + blocker.innerHTML = reqNo + "Blocked By: " + blockedBy[i]; container.appendChild(blocker); } }