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
class window.ContributorsMasterGraph extends ContributorsGraph
constructor: (@data) ->
@width = 1100
if $(window).width() > 1214
@width = 1100
else
@width = 870
@height = 125
@x = null
@y = null
......@@ -118,7 +122,11 @@ class window.ContributorsMasterGraph extends ContributorsGraph
class window.ContributorsAuthorGraph extends ContributorsGraph
constructor: (@data) ->
@width = 490
if $(window).width() > 1214
@width = 490
else
@width = 380
@height = 130
@x = null
@y = null
......
......@@ -14,27 +14,29 @@
font-size: 10px;
}
#contributors .person {
&:nth-child(even) {
float: right;
#contributors {
.contributors-list {
margin: 0 0 10px 0;
list-style: none;
padding: 0;
}
float: left;
margin-top: 10px;
}
.contributors-list {
margin: 0 0 10px 0;
list-style: none;
padding: 0;
}
.person {
&:nth-child(even) {
float: right;
}
float: left;
margin-top: 10px;
}
#contributors .person .spark {
display: block;
background: #f3f3f3;
}
.person .spark {
display: block;
background: #f3f3f3;
}
#contributors .person .area-contributor {
fill: #f17f49;
.person .area-contributor {
fill: #f17f49;
}
}
.selection rect {
......
%h3.page-title Project Network Graph
.clearfix
.pull-left
= render partial: 'shared/ref_switcher', locals: {destination: 'graph'}
......
......@@ -3,7 +3,6 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
include SharedProject
Then 'page should have network graph' do
page.should have_content "Project Network Graph"
page.should have_selector ".graph"
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