summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarahghp <sarah.groff.palermo@gmail.com>2019-04-04 14:02:57 -0400
committersarahghp <sarah.groff.palermo@gmail.com>2019-04-04 15:56:36 -0400
commita1baba233fa114116e5224269d10d86ec846cd3e (patch)
treedda524cd143ce53c0b759eb9f82e51f07bf909e3
parent33a58bd938e0e8f875cbb85cee6de9ba6d4a444b (diff)
downloadgitlab-ce-58712-truncate-names-in-pipeline.tar.gz
Make boundary conditional58712-truncate-names-in-pipeline
-rw-r--r--app/assets/javascripts/pipelines/components/graph/job_item.vue7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/pipelines/components/graph/job_item.vue b/app/assets/javascripts/pipelines/components/graph/job_item.vue
index 4b93cce671a..0d5afe04e8e 100644
--- a/app/assets/javascripts/pipelines/components/graph/job_item.vue
+++ b/app/assets/javascripts/pipelines/components/graph/job_item.vue
@@ -57,6 +57,9 @@ export default {
},
},
computed: {
+ boundary() {
+ return this.dropdownLength === 1 ? 'viewport' : 'scrollParent';
+ },
status() {
return this.job && this.job.status ? this.job.status : {};
},
@@ -104,7 +107,7 @@ export default {
<div class="ci-job-component">
<gl-link
v-if="status.has_details"
- v-gl-tooltip="{ boundary: 'viewport', placement: 'bottom' }"
+ v-gl-tooltip="{ boundary, placement: 'bottom' }"
:href="status.details_path"
:title="tooltipText"
:class="cssClassJobName"
@@ -115,7 +118,7 @@ export default {
<div
v-else
- v-gl-tooltip="{ boundary: 'viewport', placement: 'bottom' }"
+ v-gl-tooltip="{ boundary, placement: 'bottom' }"
:title="tooltipText"
:class="cssClassJobName"
class="js-job-component-tooltip non-details-job-component"