notes links invisible fix
All checks were successful
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Successful in 3s

This commit is contained in:
Lichene 2025-11-14 13:46:56 +01:00
parent ecff506675
commit 1709911051

View file

@ -117,11 +117,19 @@ function update(source) {
);
})
.append("svg:text")
.attr("x", 80) // Fixed position - adjust this number as needed
.attr("x", function (d) {
// Get the sibling text element (the node name) and calculate position
var nameText = this.parentNode.previousSibling.querySelector("text");
if (nameText) {
return 10 + nameText.getComputedTextLength() + 5; // 5px gap
}
return 80; // fallback
})
.attr("dy", ".35em")
.attr("text-anchor", "start")
.text("[Notes]")
.style("fill", "brown")
.style("font-size", "0.85em") // Smaller font
.style("fill-opacity", 1e-6)
.style("text-decoration", "underline");
// END OF NEW CODE