Skip to content

Commit

Permalink
feat: Remove leading slash of folders in graph view (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
adambrangenberg authored Feb 1, 2023
1 parent 712dab5 commit 93610e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async function drawGraph(baseUrl, isHome, pathColors, graphConfig) {
.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')
Expand Down

0 comments on commit 93610e2

Please sign in to comment.