diff options
-rw-r--r-- | app/assets/javascripts/pipelines/components/graph/graph_component.vue | 2 | ||||
-rw-r--r-- | app/assets/javascripts/pipelines/mixins/graph_component_mixin.js | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/assets/javascripts/pipelines/components/graph/graph_component.vue b/app/assets/javascripts/pipelines/components/graph/graph_component.vue index 6db76107612..27c1b639889 100644 --- a/app/assets/javascripts/pipelines/components/graph/graph_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/graph_component.vue @@ -20,7 +20,7 @@ export default { <stage-column-component v-for="(stage, index) in graph" :key="stage.name" - :class="{ + :class="{ 'append-right-48': shouldAddRightMargin(index), }" :title="capitalizeStageName(stage.name)" diff --git a/app/assets/javascripts/pipelines/mixins/graph_component_mixin.js b/app/assets/javascripts/pipelines/mixins/graph_component_mixin.js index 238b8d02b6a..f383a4b3368 100644 --- a/app/assets/javascripts/pipelines/mixins/graph_component_mixin.js +++ b/app/assets/javascripts/pipelines/mixins/graph_component_mixin.js @@ -42,13 +42,13 @@ export default { }, /** * CSS class is applied: - * - if pipeline graph contains only one stage column component - * + * - if pipeline graph contains only one stage column component + * * @param {number} index - * @returns {boolean} + * @returns {boolean} */ shouldAddRightMargin(index) { - return !(index === this.graph.length - 1) - } + return !(index === this.graph.length - 1); + }, }, }; |