aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-09 18:06:49 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-09 18:26:19 +0000
commit1b0c92a543e7d2e4bab04da60999afb34803a85b (patch)
treec425bdc9e2296be53a25a8dfc7df7402c9942730
parent312616efe94bddf3f1c24001b5f3f67fc0b07b36 (diff)
downloadgit-deps-1b0c92a543e7d2e4bab04da60999afb34803a85b.tar.gz
put border around <svg>
-rw-r--r--html/css/git-deps.css1
-rw-r--r--html/js/git-deps-graph.js2
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;