Commit 26606aa2ec5f518f2b310a0e1855e0f3f43c9bbd

Authored by Sato Hiroyuki
1 parent 5f9d6549

Fix style of network graph.

refs #3258
Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
app/assets/javascripts/branch-graph.js.coffee
@@ -51,21 +51,21 @@ class BranchGraph @@ -51,21 +51,21 @@ class BranchGraph
51 buildGraph: -> 51 buildGraph: ->
52 graphHeight = $(@element).height() 52 graphHeight = $(@element).height()
53 graphWidth = $(@element).width() 53 graphWidth = $(@element).width()
54 - ch = Math.max(graphHeight, @unitTime * @mtime + 100)  
55 - cw = Math.max(graphWidth, @unitSpace * @mspace + 260) 54 + ch = Math.max(graphHeight, @offsetY + @unitTime * @mtime + 150)
  55 + cw = Math.max(graphWidth, @offsetX + @unitSpace * @mspace + 300)
56 @r = r = Raphael(@element.get(0), cw, ch) 56 @r = r = Raphael(@element.get(0), cw, ch)
57 top = r.set() 57 top = r.set()
58 cuday = 0 58 cuday = 0
59 cumonth = "" 59 cumonth = ""
60 barHeight = Math.max(graphHeight, @unitTime * @days.length + 320) 60 barHeight = Math.max(graphHeight, @unitTime * @days.length + 320)
61 61
62 - r.rect(0, 0, 20, barHeight).attr fill: "#222"  
63 - r.rect(20, 0, 20, barHeight).attr fill: "#444" 62 + r.rect(0, 0, 26, barHeight).attr fill: "#222"
  63 + r.rect(26, 0, 20, barHeight).attr fill: "#444"
64 64
65 for day, mm in @days 65 for day, mm in @days
66 if cuday isnt day[0] 66 if cuday isnt day[0]
67 # Dates 67 # Dates
68 - r.text(30, @offsetY + @unitTime * mm, day[0]) 68 + r.text(36, @offsetY + @unitTime * mm, day[0])
69 .attr( 69 .attr(
70 font: "12px Monaco, monospace" 70 font: "12px Monaco, monospace"
71 fill: "#DDD" 71 fill: "#DDD"
@@ -74,7 +74,7 @@ class BranchGraph @@ -74,7 +74,7 @@ class BranchGraph
74 74
75 if cumonth isnt day[1] 75 if cumonth isnt day[1]
76 # Months 76 # Months
77 - r.text(10, @offsetY + @unitTime * mm, day[1]) 77 + r.text(13, @offsetY + @unitTime * mm, day[1])
78 .attr( 78 .attr(
79 font: "12px Monaco, monospace" 79 font: "12px Monaco, monospace"
80 fill: "#EEE" 80 fill: "#EEE"