Commit 37944b8d authored by Brian Kabiro's avatar Brian Kabiro Committed by Martin Wortschack

Fix spacing on contributions analytics charts

The distance between the chart and the title of the chart is too
much on the contribution analytics page. This is caused by the
styling that's on the SVG.

This fixes that by:

- reducing the height of the svg
- changing the value of preserveAspectRatio
- adding a padding between the title of the chart and the chart
parent af61f3f9
......@@ -55,13 +55,13 @@ export default {
vbWidth: 0,
vbHeight: 0,
vpWidth: 0,
vpHeight: 350,
preserveAspectRatioType: 'xMidYMid meet',
vpHeight: 200,
preserveAspectRatioType: 'xMidYMin meet',
containerMargin: {
leftRight: 30,
},
viewBoxMargin: {
topBottom: 150,
topBottom: 100,
},
panX: 0,
xScale: {},
......@@ -274,6 +274,7 @@ export default {
<div ref="svgContainer" :class="activateGrabCursor" class="svg-graph-container">
<svg
ref="baseSvg"
class="svg-graph overflow-visible pt-5"
:width="vpWidth"
:height="vpHeight"
:viewBox="svgViewBox"
......
......@@ -442,6 +442,7 @@ img.emoji {
.ws-normal { white-space: normal; }
.ws-pre-wrap { white-space: pre-wrap; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }
.d-flex-center {
display: flex;
......
---
title: Fix styling on contribution analytics dashboard
merge_request: 207012
author: briankabiro
type: fixed
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