summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2022-01-22 10:35:45 -0500
committerDavid Thompson <dthompson@vistahigherlearning.com>2022-01-22 10:35:45 -0500
commit4e0433bc70e34ee1506a114a7b6d13da7e8b52b9 (patch)
treefbab4cddb412ad04e7da1a3630ac1a20f526cd9f
parentb09803f0902732cf87a872e7f7c0deb467efa77d (diff)
Tweak crop details modal text.
-rw-r--r--js/garden.js6
1 files changed, 3 insertions, 3 deletions
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");
}