From 19a018195575d226ac1ca38bb21fb81a0d48b796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katharina=20W=C3=BCnsche?= Date: Tue, 23 Jul 2024 14:21:25 +0200 Subject: [PATCH] Improve FamilyTree dark mode --- components/family-tree.vue | 39 +++++++++++++++++++++++++--------- public/assets/icons/reduce.svg | 2 +- 2 files changed, 30 insertions(+), 11 deletions(-) diff --git a/components/family-tree.vue b/components/family-tree.vue index 02142f4..5d5a80c 100644 --- a/components/family-tree.vue +++ b/components/family-tree.vue @@ -83,10 +83,10 @@ function drawChildConnections() { overlays.push({ type: "Custom", options: { - location: 8, + location: 12, create() { const d = document.createElement("button"); - d.innerHTML = `${t("FamilyTree.collapse-children")}`; + d.innerHTML = `${t("FamilyTree.collapse-children")}`; d.onclick = toggleShowAllChildren; return d; }, @@ -141,7 +141,7 @@ onMounted(() => { location: siblings.value.length > 1 ? 12 : 0.5, create() { const d = document.createElement("div"); - d.innerHTML = `${t("FamilyTree.siblings")}`; + d.innerHTML = `${t("FamilyTree.siblings")}`; return d; }, }, @@ -158,7 +158,7 @@ onMounted(() => { location: partners.value.length > 1 ? 12 : 0.5, create() { const d = document.createElement("div"); - d.innerHTML = `${t("FamilyTree.partner")}`; + d.innerHTML = `${t("FamilyTree.partner")}`; return d; }, }, @@ -201,9 +201,14 @@ function toggleShowAllChildren() {
- + {{ t("FamilyTree.legend") }} -
@@ -216,12 +221,16 @@ function toggleShowAllChildren() { leave-to-class="transform scale-95 opacity-0" >
- +
{{ t("FamilyTree.siblings") }}
@@ -229,7 +238,7 @@ function toggleShowAllChildren() {
{{ t("FamilyTree.partner") }}
@@ -239,12 +248,22 @@ function toggleShowAllChildren() {
{{ t("FamilyTree.is-descendant-of") }}
+ +
+ +
{{ t("FamilyTree.collapse-children") }}
+
+
diff --git a/public/assets/icons/reduce.svg b/public/assets/icons/reduce.svg index a9ab42c..0ef0126 100644 --- a/public/assets/icons/reduce.svg +++ b/public/assets/icons/reduce.svg @@ -1 +1 @@ - +