Commit 5f63c005 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix graph and settings highlight

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 6ef75dc7
...@@ -46,7 +46,7 @@ class @ContributorsGraph ...@@ -46,7 +46,7 @@ class @ContributorsGraph
class @ContributorsMasterGraph extends ContributorsGraph class @ContributorsMasterGraph extends ContributorsGraph
constructor: (@data) -> constructor: (@data) ->
@width = $('.container').width() - 70 @width = $('.container').width() - 345
@height = 200 @height = 200
@x = null @x = null
@y = null @y = null
...@@ -119,7 +119,7 @@ class @ContributorsMasterGraph extends ContributorsGraph ...@@ -119,7 +119,7 @@ class @ContributorsMasterGraph extends ContributorsGraph
class @ContributorsAuthorGraph extends ContributorsGraph class @ContributorsAuthorGraph extends ContributorsGraph
constructor: (@data) -> constructor: (@data) ->
@width = $('.container').width()/2 - 100 @width = $('.container').width()/2 - 225
@height = 200 @height = 200
@x = null @x = null
@y = null @y = null
......
...@@ -74,14 +74,20 @@ body.project { ...@@ -74,14 +74,20 @@ body.project {
.nav-sidebar li a .count { .nav-sidebar li a .count {
float: right; float: right;
background: #eee; background: #eee;
padding: 2px 8px; padding: 0px 8px;
@include border-radius(6px); @include border-radius(6px);
} }
.nav-sidebar li.active a { .nav-sidebar li {
&.active a {
color: #333; color: #333;
background: #EEE; background: #EEE;
font-weight: bold; font-weight: bold;
&.no-highlight {
background: none;
}
}
} }
.nav-sidebar li { .nav-sidebar li {
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
- if project_nav_tab? :settings - if project_nav_tab? :settings
= nav_link(html_options: {class: "#{project_tab_class} separate-item"}) do = nav_link(html_options: {class: "#{project_tab_class} separate-item"}) do
= link_to edit_project_path(@project), class: "stat-tab tab " do = link_to edit_project_path(@project), class: "stat-tab tab no-highlight" do
Settings Settings
%i.fa.fa-angle-down %i.fa.fa-angle-down
- if defined?(settings) && settings - if defined?(settings) && settings
......
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