summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-02-22 01:57:18 -0600
committerMike Greiling <mike@pixelcog.com>2018-03-06 03:11:39 -0600
commitab9ad2db4fbc40a81bb927de10a10aa7f32bba2a (patch)
tree0b9b937b2bd5b377e6615f1eab9ef14b6d065b20
parent1e2830446f5da4a55db0b8493b3d7c20575d5bff (diff)
downloadgitlab-ce-ab9ad2db4fbc40a81bb927de10a10aa7f32bba2a.tar.gz
fix spacing around axis label text in small breakpoints
-rw-r--r--app/assets/javascripts/monitoring/components/graph/legend.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/monitoring/components/graph/legend.vue b/app/assets/javascripts/monitoring/components/graph/legend.vue
index bdd00a61d85..3149397b61f 100644
--- a/app/assets/javascripts/monitoring/components/graph/legend.vue
+++ b/app/assets/javascripts/monitoring/components/graph/legend.vue
@@ -62,8 +62,9 @@
},
rectTransform() {
- const yCoordinate = ((this.graphHeight - this.margin.top) / 2)
- + (this.yLabelWidth / 2) + 10 || 0;
+ const yCoordinate = (((this.graphHeight - this.margin.top)
+ + this.measurements.axisLabelLineOffset) / 2)
+ + (this.yLabelWidth / 2) || 0;
return `translate(0, ${yCoordinate}) rotate(-90)`;
},