diff --git a/src/app.js b/src/app.js index da08b9b..db4f777 100644 --- a/src/app.js +++ b/src/app.js @@ -2459,7 +2459,7 @@ const pedBtn = document.getElementById("pedigree-btn"); const pedRefresh = document.getElementById("pedigree-refresh"); - const PED_OPEN_DEPTH = 4; // generations shown expanded by default; deeper collapse + const PED_OPEN_DEPTH = 3; // show 3 generations expanded by default; deeper collapses let pedPollTimer = null; let pedNodes = {}; // latest ancestry map, for the progress count @@ -2646,12 +2646,18 @@ } // The tree is ahnentafel-indexed: the dog is position 1, its sire 2n and dam - // 2n+1. We build recursively (sire above dam) and collapse below PED_OPEN_DEPTH. + // 2n+1. We render it top-down like a family tree — the dog on top, parents + // branching below — as a nested