From 966bae979bd98ea7674a606146041f4a53fac4f3 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Sat, 26 Aug 2023 15:00:00 +0200 Subject: [PATCH] Remove a little improvement --- .../src/widgets/simple_family_tree/SimpleFamilyTree.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/geneit_app/src/widgets/simple_family_tree/SimpleFamilyTree.tsx b/geneit_app/src/widgets/simple_family_tree/SimpleFamilyTree.tsx index 84c2215..375ac8c 100644 --- a/geneit_app/src/widgets/simple_family_tree/SimpleFamilyTree.tsx +++ b/geneit_app/src/widgets/simple_family_tree/SimpleFamilyTree.tsx @@ -113,11 +113,8 @@ function buildSimpleDownTreeNode( if (node.spouse) { levelWidth = SPOUSE_SPACING + - 2 * - Math.max( - memberCardWidth(node.member), - memberCardWidth(node.spouse.member) - ); + memberCardWidth(node.member) + + memberCardWidth(node.spouse.member); } else { levelWidth = memberCardWidth(node.member); }