From 3f49a79a64f474812f95d91ac940019fbb8d0370 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Tue, 6 Aug 2019 10:52:50 +0100 Subject: [PATCH] Prevents showing 2 tooltips in pipelines In pipeline's table two tooltips were being rendered With this change only one tooltip is trigerred on hover --- .../vue_shared/components/commit.vue | 22 +++++++++---------- .../framework/responsive_tables.scss | 2 +- .../unreleased/64608-double-tooltips.yml | 5 +++++ 3 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 changelogs/unreleased/64608-double-tooltips.yml diff --git a/app/assets/javascripts/vue_shared/components/commit.vue b/app/assets/javascripts/vue_shared/components/commit.vue index ae9b013d980..f7c508c4e23 100644 --- a/app/assets/javascripts/vue_shared/components/commit.vue +++ b/app/assets/javascripts/vue_shared/components/commit.vue @@ -152,37 +152,35 @@ export default { :href="mergeRequestRef.path" :title="mergeRequestRef.title" class="ref-name" + >{{ mergeRequestRef.iid }} - {{ mergeRequestRef.iid }} - {{ commitRef.name }} - {{ commitRef.name }} - - {{ shortSha }} + {{ shortSha }} -
- +
+ - - {{ title }} - - + + {{ title }} + + {{ __("Can't find HEAD commit for this branch") }}
diff --git a/app/assets/stylesheets/framework/responsive_tables.scss b/app/assets/stylesheets/framework/responsive_tables.scss index 6bd44ee19bd..fd6f80e26cb 100644 --- a/app/assets/stylesheets/framework/responsive_tables.scss +++ b/app/assets/stylesheets/framework/responsive_tables.scss @@ -155,7 +155,7 @@ text-overflow: ellipsis; @include media-breakpoint-up(md) { - flex: 0 0 90%; + flex: 0 0 85%; } .avatar { diff --git a/changelogs/unreleased/64608-double-tooltips.yml b/changelogs/unreleased/64608-double-tooltips.yml new file mode 100644 index 00000000000..f6cb1944d26 --- /dev/null +++ b/changelogs/unreleased/64608-double-tooltips.yml @@ -0,0 +1,5 @@ +--- +title: Prevents showing 2 tooltips in pipelines table +merge_request: +author: +type: fixed