diff options
author | Dhiraj Bodicherla <dhiraj@gitlab.com> | 2019-09-12 01:34:19 +0300 |
---|---|---|
committer | Dhiraj Bodicherla <dhiraj@gitlab.com> | 2019-09-12 03:47:38 +0300 |
commit | fdc7a40c60d49c3b82d7206edcd9d94e1959968b (patch) | |
tree | 34e4138dc30dfed746ec238942cc94c71d00afcc | |
parent | b35e5bb98496831bea88224ae754bbe978af50af (diff) |
Fixed alert widget spacing and cleaned classes12891-use-a-single-badge-to-show-number-of-active-alerts-on-metrics-dashboards
-rw-r--r-- | app/assets/javascripts/monitoring/components/charts/time_series.vue | 8 | ||||
-rw-r--r-- | app/assets/javascripts/monitoring/components/dashboard.vue | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/monitoring/components/charts/time_series.vue b/app/assets/javascripts/monitoring/components/charts/time_series.vue index 5611dad76bf..091df70ef21 100644 --- a/app/assets/javascripts/monitoring/components/charts/time_series.vue +++ b/app/assets/javascripts/monitoring/components/charts/time_series.vue @@ -214,8 +214,8 @@ export default { containerWidth: 'onResize', }, mounted() { - const chartTitleEl = this.$refs.chartTitle; - if (chartTitleEl && chartTitleEl.scrollWidth > chartTitleEl.offsetWidth) { + const graphTitleEl = this.$refs.graphTitle; + if (graphTitleEl && graphTitleEl.scrollWidth > graphTitleEl.offsetWidth) { this.showTitleTooltip = true; } }, @@ -287,12 +287,12 @@ export default { <div :class="{ 'prometheus-graph-embed w-100 p-3': showBorder }"> <div class="prometheus-graph-header"> <h5 - ref="chartTitle" + ref="graphTitle" class="prometheus-graph-title js-graph-title text-truncate append-right-8" > {{ graphData.title }} </h5> - <gl-tooltip :target="() => $refs.chartTitle" :disabled="!showTitleTooltip"> + <gl-tooltip :target="() => $refs.graphTitle" :disabled="!showTitleTooltip"> {{ graphData.title }} </gl-tooltip> <gl-button diff --git a/app/assets/javascripts/monitoring/components/dashboard.vue b/app/assets/javascripts/monitoring/components/dashboard.vue index bacf06dd36d..3db86b312e7 100644 --- a/app/assets/javascripts/monitoring/components/dashboard.vue +++ b/app/assets/javascripts/monitoring/components/dashboard.vue @@ -489,7 +489,7 @@ export default { /> <gl-dropdown v-gl-tooltip - class="mx-2" + class="ml-2" toggle-class="btn btn-transparent border-0" :right="true" :no-caret="true" |