diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-02-22 10:57:18 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-03-06 12:11:39 +0300 |
commit | ab9ad2db4fbc40a81bb927de10a10aa7f32bba2a (patch) | |
tree | 0b9b937b2bd5b377e6615f1eab9ef14b6d065b20 /app/assets | |
parent | 1e2830446f5da4a55db0b8493b3d7c20575d5bff (diff) |
fix spacing around axis label text in small breakpoints
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/monitoring/components/graph/legend.vue | 5 |
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)`; }, |