From 954e2e77b0dff16885f8c3c5d31d00d6c8a09e2f Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Tue, 15 Dec 2020 11:00:46 -0500 Subject: [PATCH] tweak layout --- src/npc/startingGirls/editFamily.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/npc/startingGirls/editFamily.js b/src/npc/startingGirls/editFamily.js index 063a683a171..74908a70430 100644 --- a/src/npc/startingGirls/editFamily.js +++ b/src/npc/startingGirls/editFamily.js @@ -7,10 +7,11 @@ App.Intro.editFamily = function(slave) { const editFamily = makeElWithID("edit-family"); const familyTable = makeElWithID("family-table"); + familyTable.append(summary()); familyTable.append(makeElWithID("dont-be-dumb")); familyTable.append(mother()); - familyTable.append(father()); familyTable.append(sameMotherAs()); + familyTable.append(father()); familyTable.append(sameFatherAs()); familyTable.append(motherOfTheChildren()); familyTable.append(fatherOfTheChildren()); @@ -21,17 +22,19 @@ App.Intro.editFamily = function(slave) { editFamily.append(makeElWithID("family-tree")); el.append(editFamily); - const familySummary = makeElWithID("familySummary"); - $(familySummary).append(App.Desc.family(slave)); - el.append(familySummary); - return el; + function summary() { + const familySummary = makeElWithID("familySummary", "p"); + $(familySummary).append(App.Desc.family(slave)); + return familySummary; + } + function mother() { const div = document.createElement("div"); const linkArray = []; - div.append("Mother: "); + div.append(`${slave.slaveName}'s mother: `); const nameEl = makeElWithID("motherName", "span"); nameEl.append(parentName("mother"), " "); @@ -82,7 +85,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append("Father: "); + div.append(`${slave.slaveName}'s father: `); const nameEl = makeElWithID("fatherName", "span"); nameEl.append(parentName("father"), " "); @@ -258,7 +261,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append("Mother of the children: "); + div.append(`${slave.slaveName} is the mother of these children: `); const nameEl = makeElWithID("motheredNames", "span"); nameEl.append(App.StartingGirls.listOfSlavesWithParent("mother", slave.ID), " "); @@ -325,7 +328,7 @@ App.Intro.editFamily = function(slave) { const div = document.createElement("div"); const linkArray = []; - div.append("Father of the children: "); + div.append(`${slave.slaveName} is the father of these children: `); const nameEl = makeElWithID("fatheredNames", "span"); nameEl.append(App.StartingGirls.listOfSlavesWithParent("father", slave.ID), " "); -- GitLab