diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-06 16:54:32 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-06 16:54:32 +0000 |
commit | 055123df1f86f1bff196031b6a289665a6db04c3 (patch) | |
tree | fe8c81c24d7c9743c2224f4d621a9a59f5f26c36 | |
parent | be8ec266ec51b4f0c9a36a7ff6d136e42c54dd9f (diff) | |
download | git-deps-055123df1f86f1bff196031b6a289665a6db04c3.tar.gz |
improve spacing a bit
-rw-r--r-- | html/git-deps.css | 1 | ||||
-rw-r--r-- | html/js/git-deps-graph.js | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/html/git-deps.css b/html/git-deps.css index 6f6fbe0..e6a8e7d 100644 --- a/html/git-deps.css +++ b/html/git-deps.css @@ -15,6 +15,7 @@ font-size: 16px; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; text-anchor: middle; + alignment-baseline: middle; /* cursor: move; */ } diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js index d3fb93e..f4867ee 100644 --- a/html/js/git-deps-graph.js +++ b/html/js/git-deps-graph.js @@ -38,8 +38,8 @@ function draw_graph () { d3cola .nodes(graph.nodes) .links(graph.links) - .flowLayout("y", 30) - .symmetricDiffLinkLengths(6) + .flowLayout("y", 50) + .symmetricDiffLinkLengths(16) .start(10,20,20); // define arrow markers for graph links @@ -59,7 +59,7 @@ function draw_graph () { .enter().append('svg:path') .attr('class', 'link'); - var margin = 10, pad = 10; + var margin = 10, pad = 5; var node = fg.selectAll(".node") .data(graph.nodes) .enter().append("rect") |