Skip to content

Commit

Permalink
Adjust button placement
Browse files Browse the repository at this point in the history
  • Loading branch information
katharinawuensche committed Jul 23, 2024
1 parent 19a0181 commit 116b5de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/family-tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function drawChildConnections() {
overlays.push({
type: "Custom",
options: {
location: 12,
location: 8,
create() {
const d = document.createElement("button");
d.innerHTML = `<img src="/assets/icons/reduce.svg" class="size-4 ml-7 dark:invert" title="${t("FamilyTree.collapse-children")}"/><span class="sr-only">${t("FamilyTree.collapse-children")}</span>`;
Expand All @@ -105,7 +105,7 @@ function drawChildConnections() {
target: child,
connector: {
type: FlowchartConnector.type,
options: { midpoint: 0.9999, stub: [12, 20], alwaysRespectStubs: true },
options: { midpoint: 0.9999, stub: [16, 20], alwaysRespectStubs: true },
},
anchors: [AnchorLocations.Bottom, AnchorLocations.Top],
endpoint: BlankEndpoint.type,
Expand Down

0 comments on commit 116b5de

Please sign in to comment.