From 498a9ce3d2744d9af7811f2b1d8bef8aeeb78eaf Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 5 Aug 2013 19:10:20 +0300 Subject: [PATCH] more space for months names in network graph --- app/assets/javascripts/branch-graph.js.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/branch-graph.js.coffee b/app/assets/javascripts/branch-graph.js.coffee index 5f5be07..3185385 100644 --- a/app/assets/javascripts/branch-graph.js.coffee +++ b/app/assets/javascripts/branch-graph.js.coffee @@ -62,13 +62,13 @@ class BranchGraph cuday = 0 cumonth = "" - r.rect(0, 0, 30, @barHeight).attr fill: "#222" - r.rect(30, 0, 25, @barHeight).attr fill: "#444" + r.rect(0, 0, 40, @barHeight).attr fill: "#222" + r.rect(40, 0, 30, @barHeight).attr fill: "#444" for day, mm in @days if cuday isnt day[0] # Dates - r.text(40, @offsetY + @unitTime * mm, day[0]) + r.text(55, @offsetY + @unitTime * mm, day[0]) .attr( font: "12px Monaco, monospace" fill: "#BBB" @@ -77,7 +77,7 @@ class BranchGraph if cumonth isnt day[1] # Months - r.text(13, @offsetY + @unitTime * mm, day[1]) + r.text(20, @offsetY + @unitTime * mm, day[1]) .attr( font: "12px Monaco, monospace" fill: "#EEE" -- libgit2 0.21.2