Adam Brangenberg
2023-02-01 93610e232b366c6f6cb9695d4755fa578dc28aa0
feat: Remove leading slash of folders in graph view (#282)

1 files modified
2 ■■■ changed files
assets/js/graph.js 2 ●●● patch | view | raw | blame | history
assets/js/graph.js
@@ -229,7 +229,7 @@
    .attr("dx", 0)
    .attr("dy", (d) => nodeRadius(d) + 8 + "px")
    .attr("text-anchor", "middle")
    .text((d) => content[d.id]?.title || d.id.replace("-", " "))
    .text((d) => content[d.id]?.title || (d.id.charAt(1).toUpperCase() + d.id.slice(2)).replace("-", " "))
    .style('opacity', (opacityScale - 1) / 3.75)
    .style("pointer-events", "none")
    .style('font-size', fontSize+'em')