From a02c3d09d3670c7b7543461bf4d3c4d5fc08f418 Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Date: Wed, 15 Jun 2016 12:01:58 -0500 Subject: [PATCH] Fix graph columns --- app/assets/stylesheets/pages/stat_graph.scss | 17 +++++++++++++---- app/views/projects/graphs/show.html.haml | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/pages/stat_graph.scss b/app/assets/stylesheets/pages/stat_graph.scss index 85a0304196c..4adf6193b8a 100644 --- a/app/assets/stylesheets/pages/stat_graph.scss +++ b/app/assets/stylesheets/pages/stat_graph.scss @@ -14,18 +14,27 @@ font-size: 10px; } +#contributors-master { + @include make-md-column(12); + + svg { + width: 100%; + } +} + #contributors { .contributors-list { margin: 0 0 10px; list-style: none; padding: 0; + + svg { + width: 100%; + } } .person { - &:nth-child(even) { - float: right; - } - float: left; + @include make-md-column(6); margin-top: 10px; } diff --git a/app/views/projects/graphs/show.html.haml b/app/views/projects/graphs/show.html.haml index bdfde634f7c..61706c1d0fe 100644 --- a/app/views/projects/graphs/show.html.haml +++ b/app/views/projects/graphs/show.html.haml @@ -22,7 +22,7 @@ %p.light Commits to #{@ref}, excluding merge commits. Limited to 6,000 commits. %input#brush_change{:type => "hidden"} - .graphs + .graphs.row #contributors-master #contributors.clearfix %ol.contributors-list.clearfix