From 175e09f16742cbc8d5535e548cef880768ec3397 Mon Sep 17 00:00:00 2001
From: Sato Hiroyuki <sathiroyuki@gmail.com>
Date: Tue, 19 Mar 2013 19:27:15 +0900
Subject: [PATCH] Change graph element size.

---
 app/assets/javascripts/branch-graph.js.coffee | 8 ++++----
 app/assets/stylesheets/sections/graph.scss    | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/assets/javascripts/branch-graph.js.coffee b/app/assets/javascripts/branch-graph.js.coffee
index 4a270c49e06..79ea62afd3f 100644
--- a/app/assets/javascripts/branch-graph.js.coffee
+++ b/app/assets/javascripts/branch-graph.js.coffee
@@ -47,14 +47,14 @@ class BranchGraph
 
   buildGraph: ->
     graphWidth = $(@element).width()
-    ch = @mspace * 20 + 100
+    ch = @mspace * 10 + 100
     cw = Math.max(graphWidth, @mtime * 20 + 260)
     r = Raphael(@element.get(0), cw, ch)
     top = r.set()
     cuday = 0
     cumonth = ""
     @offsetX = 20
-    @offsetY = 60
+    @offsetY = 50
     barWidth = Math.max(graphWidth, @days.length * 20 + 320)
     @scrollLeft = cw
     @raphael = r
@@ -64,7 +64,7 @@ class BranchGraph
     for day, mm in @days
       if cuday isnt day[0]
         # Dates
-        r.text(@offsetX + mm * 20, 31, day[0])
+        r.text(@offsetX + mm * 20, 30, day[0])
           .attr(
             font: "12px Monaco, monospace"
             fill: "#DDD"
@@ -73,7 +73,7 @@ class BranchGraph
 
       if cumonth isnt day[1]
         # Months
-        r.text(@offsetX + mm * 20, 11, day[1])
+        r.text(@offsetX + mm * 20, 10, day[1])
           .attr(
             font: "12px Monaco, monospace"
             fill: "#EEE"
diff --git a/app/assets/stylesheets/sections/graph.scss b/app/assets/stylesheets/sections/graph.scss
index 5800098ade4..7da00719b33 100644
--- a/app/assets/stylesheets/sections/graph.scss
+++ b/app/assets/stylesheets/sections/graph.scss
@@ -12,7 +12,7 @@
   .graph { 
     background: #f1f1f1;
     cursor: move;
-    height: 70%;
+    height: 500px;
     overflow: hidden;
   }
 }
-- 
GitLab