From 7c5c2260d1917ec44431406e39a180dea065c4d5 Mon Sep 17 00:00:00 2001 From: ferricles Date: Tue, 19 Jan 2021 12:46:04 -0800 Subject: [PATCH] fixed duration + crafted tier displaying in center --- display.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/display.js b/display.js index bc8629e..852f815 100644 --- a/display.js +++ b/display.js @@ -685,7 +685,7 @@ function displayExpandedItem(item, parent_id){ if(item.get("tier") && item.get("tier") === "Crafted") { let dura_elem = document.createElement("p"); - dura_elem.classList.add("left"); + dura_elem.classList.add("itemp"); let dura = []; let suffix = ""; if(nonConsumables.includes(item.get("type"))) { @@ -697,15 +697,15 @@ function displayExpandedItem(item, parent_id){ suffix = " sec." } dura_elem.textContent += dura[0]+"-"+dura[1] + suffix; - parent_div.append(dura_elem); + active_elem.append(dura_elem); } //Show item tier if (item.get("tier") && item.get("tier") !== " ") { let item_desc_elem = document.createElement("p"); - item_desc_elem.classList.add('left'); + item_desc_elem.classList.add('itemp'); item_desc_elem.classList.add(item.get("tier")); item_desc_elem.textContent = item.get("tier")+" "+item.get("type"); - parent_div.append(item_desc_elem); + active_elem.append(item_desc_elem); } } function displayCraftStats(craft, parent_id) {