Commit 2a073901 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove unnecessary title. Fix graphs width for less then 1214px resolution

parent c49dcbac
...@@ -46,7 +46,11 @@ class window.ContributorsGraph ...@@ -46,7 +46,11 @@ class window.ContributorsGraph
class window.ContributorsMasterGraph extends ContributorsGraph class window.ContributorsMasterGraph extends ContributorsGraph
constructor: (@data) -> constructor: (@data) ->
@width = 1100 if $(window).width() > 1214
@width = 1100
else
@width = 870
@height = 125 @height = 125
@x = null @x = null
@y = null @y = null
...@@ -118,7 +122,11 @@ class window.ContributorsMasterGraph extends ContributorsGraph ...@@ -118,7 +122,11 @@ class window.ContributorsMasterGraph extends ContributorsGraph
class window.ContributorsAuthorGraph extends ContributorsGraph class window.ContributorsAuthorGraph extends ContributorsGraph
constructor: (@data) -> constructor: (@data) ->
@width = 490 if $(window).width() > 1214
@width = 490
else
@width = 380
@height = 130 @height = 130
@x = null @x = null
@y = null @y = null
......
...@@ -14,27 +14,29 @@ ...@@ -14,27 +14,29 @@
font-size: 10px; font-size: 10px;
} }
#contributors .person { #contributors {
&:nth-child(even) { .contributors-list {
float: right; margin: 0 0 10px 0;
list-style: none;
padding: 0;
} }
float: left;
margin-top: 10px;
}
.contributors-list { .person {
margin: 0 0 10px 0; &:nth-child(even) {
list-style: none; float: right;
padding: 0; }
} float: left;
margin-top: 10px;
}
#contributors .person .spark { .person .spark {
display: block; display: block;
background: #f3f3f3; background: #f3f3f3;
} }
#contributors .person .area-contributor { .person .area-contributor {
fill: #f17f49; fill: #f17f49;
}
} }
.selection rect { .selection rect {
......
%h3.page-title Project Network Graph
.clearfix .clearfix
.pull-left .pull-left
= render partial: 'shared/ref_switcher', locals: {destination: 'graph'} = render partial: 'shared/ref_switcher', locals: {destination: 'graph'}
......
...@@ -3,7 +3,6 @@ class ProjectNetworkGraph < Spinach::FeatureSteps ...@@ -3,7 +3,6 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
include SharedProject include SharedProject
Then 'page should have network graph' do Then 'page should have network graph' do
page.should have_content "Project Network Graph"
page.should have_selector ".graph" page.should have_selector ".graph"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment