Commit 6a390ac1 authored by Yogi's avatar Yogi Committed by Jose Ivan Vargas

Address graphs in the contributor page

parent 9cf1ee01
......@@ -201,11 +201,12 @@ export default {
</div>
<div v-else-if="showChart" class="contributors-charts">
<h4>{{ __('Commits to') }} {{ branch }}</h4>
<h4 class="gl-mb-2 gl-mt-5">{{ __('Commits to') }} {{ branch }}</h4>
<span>{{ __('Excluding merge commits. Limited to 6,000 commits.') }}</span>
<resizable-chart-container>
<gl-area-chart
slot-scope="{ width }"
class="gl-mb-5"
:width="width"
:data="masterChartData"
:option="masterChartOptions"
......@@ -218,10 +219,12 @@ export default {
<div
v-for="(contributor, index) in individualChartsData"
:key="index"
class="col-lg-6 col-12"
class="col-lg-6 col-12 gl-my-5"
>
<h4>{{ contributor.name }}</h4>
<p>{{ n__('%d commit', '%d commits', contributor.commits) }} ({{ contributor.email }})</p>
<h4 class="gl-mb-2 gl-mt-0">{{ contributor.name }}</h4>
<p class="gl-mb-3">
{{ n__('%d commit', '%d commits', contributor.commits) }} ({{ contributor.email }})
</p>
<resizable-chart-container>
<gl-area-chart
slot-scope="{ width }"
......
---
title: Add space to graph in contributor page
merge_request: 54431
author: Yogi (@yo)
type: changed
......@@ -5,7 +5,9 @@ exports[`Contributors charts should render charts when loading completed and the
<div
class="contributors-charts"
>
<h4>
<h4
class="gl-mb-2 gl-mt-5"
>
Commits to master
</h4>
......@@ -16,6 +18,7 @@ exports[`Contributors charts should render charts when loading completed and the
<div>
<glareachart-stub
annotations=""
class="gl-mb-5"
data="[object Object]"
height="264"
includelegendavgmax="true"
......@@ -34,14 +37,20 @@ exports[`Contributors charts should render charts when loading completed and the
class="row"
>
<div
class="col-lg-6 col-12"
class="col-lg-6 col-12 gl-my-5"
>
<h4>
<h4
class="gl-mb-2 gl-mt-0"
>
John
</h4>
<p>
<p
class="gl-mb-3"
>
2 commits (jawnnypoo@gmail.com)
</p>
<div>
......
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