From f83bafda366512eebeeff081a4d2c731dcbffc63 Mon Sep 17 00:00:00 2001 From: ferricles Date: Sun, 10 Jan 2021 17:47:13 -0800 Subject: [PATCH] dummy commit --- display.js | 5 +++-- styles.css | 7 ++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/display.js b/display.js index e65fda1..16ac469 100644 --- a/display.js +++ b/display.js @@ -336,13 +336,13 @@ function displayExpandedItem(item, parent_id){ let powderPrefix = document.createElement("td"); powderPrefix.classList.add("itemp"); powderPrefix.classList.add("left"); - powderPrefix.textContent = "Powders: " + " ["; + powderPrefix.textContent = "Powders: ["; row.appendChild(powderPrefix); let spaceElem = document.createElement("td"); //spaceElem.textContent = " "; spaceElem.classList.add("itemp"); - spaceElem.classList.add("left"); + let powderList = item.get("powders").map(x => powderNames.get(x)) for(let i = 0; i < powderList.length; i++){ @@ -351,6 +351,7 @@ function displayExpandedItem(item, parent_id){ console.log(powderStr); powder.textContent = numerals.get(powderStr.charAt(1), 10); powder.classList.add(powderMap.get(powderStr.charAt(0))); + powder.classList.add("nopadding"); row.appendChild(powder); } diff --git a/styles.css b/styles.css index 7724dc2..853229e 100644 --- a/styles.css +++ b/styles.css @@ -11,7 +11,12 @@ th, td { padding-right: 10px; } - +.nomargin{ + margin: 0; +} +.nopadding{ + padding: 0; +} .equipment { padding: 4%; display: grid;