From 4e0433bc70e34ee1506a114a7b6d13da7e8b52b9 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 22 Jan 2022 10:35:45 -0500 Subject: Tweak crop details modal text. --- js/garden.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/garden.js b/js/garden.js index 6987c57..d5efe54 100644 --- a/js/garden.js +++ b/js/garden.js @@ -460,14 +460,14 @@ function viewCropDetails(crop) { const overlay = document.createElement("div"); const modal = document.createElement("div"); const heading = document.createElement("h2"); - const subheading = document.createElement("h4"); + const subheading = document.createElement("span"); const speciesDetail = `(${crop.species.join(", ")})`; heading.appendChild(document.createTextNode(crop.name)); subheading.appendChild(document.createTextNode(speciesDetail)); subheading.classList.add("detail-subheading"); modal.classList.add("modal"); modal.appendChild(heading); - modal.appendChild(subheading); + heading.appendChild(subheading); addDetail("Average time to maturity", `${crop.maturity} weeks from ${crop.transplant ? "transplant" : "seed"}`); if(crop.springPlant == -1) { @@ -502,7 +502,7 @@ function viewCropDetails(crop) { addDetail("Succession planting interval", `Every ${crop.interval} weeks`); } if(crop.multisow > 1) { - addDetail("Multisow", `${crop.multisow} seeds per module`); + addDetail("Multisow", `${crop.multisow} plants per hole (after thinning)`); } else { addDetail("Multisow", "No"); } -- cgit v1.2.3