diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-09 18:06:49 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-09 18:26:19 +0000 |
commit | 1b0c92a543e7d2e4bab04da60999afb34803a85b (patch) | |
tree | c425bdc9e2296be53a25a8dfc7df7402c9942730 | |
parent | 312616efe94bddf3f1c24001b5f3f67fc0b07b36 (diff) | |
download | git-deps-1b0c92a543e7d2e4bab04da60999afb34803a85b.tar.gz |
put border around <svg>
-rw-r--r-- | html/css/git-deps.css | 1 | ||||
-rw-r--r-- | html/js/git-deps-graph.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/html/css/git-deps.css b/html/css/git-deps.css index ec944ae..498d5f2 100644 --- a/html/css/git-deps.css +++ b/html/css/git-deps.css @@ -18,6 +18,7 @@ body { #svg-container { flex: 1; + border: 1px solid #ccc; /* width has to be half of SVG_MARGIN */ } rect.background { diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js index 2c8c0e8..66b284e 100644 --- a/html/js/git-deps-graph.js +++ b/html/js/git-deps-graph.js @@ -1,4 +1,4 @@ -var SVG_MARGIN = 0, // space around <svg> +var SVG_MARGIN = 2, // space around <svg>, matching #svg-container border RECT_MARGIN = 14, // space in between <rects> PADDING = 5, // space in between <text> label and <rect> border EDGE_ROUTING_MARGIN = 3; |