From 055123df1f86f1bff196031b6a289665a6db04c3 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Tue, 6 Jan 2015 16:54:32 +0000 Subject: improve spacing a bit --- html/git-deps.css | 1 + html/js/git-deps-graph.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'html') 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") -- cgit