Commit 09a9fcc9 authored by Filipa Lacerda's avatar Filipa Lacerda

Updates CSS for non a tags inside dropdown

parent 2c3065c1
......@@ -108,7 +108,7 @@ export default {
<div
v-else
v-tooltip
class="js-job-component-tooltip"
class="js-job-component-tooltip non-details-job-component"
:title="tooltipText"
:class="cssClassJobName"
data-html="true"
......
......@@ -96,7 +96,7 @@ export default {
axios
.get(this.stage.dropdown_path)
.then(({ data }) => {
this.dropdownContent = data;
this.dropdownContent = data.latest_statuses;
this.isLoading = false;
})
.catch(() => {
......@@ -117,7 +117,7 @@ export default {
*/
stopDropdownClickPropagation() {
$(
this.$el.querySelectorAll('.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item')
this.$el.querySelectorAll('.js-builds-dropdown-list a.mini-pipeline-graph-dropdown-item'),
).on('click', e => {
e.stopPropagation();
});
......@@ -183,7 +183,7 @@ export default {
<li
v-for="job in dropdownContent"
:key="job.id"
>
>
<job-component
:job="job"
css-class-job-name="mini-pipeline-graph-dropdown-item"
......
......@@ -48,7 +48,6 @@ export default () => {
.catch(() => {
this.requestFinishedFor = action;
Flash(__('An error occurred while making the request.'));
eventHub.$emit('graphActionFinished', action);
});
},
},
......
......@@ -805,6 +805,11 @@ button.mini-pipeline-graph-dropdown-toggle {
line-height: $line-height-base;
white-space: nowrap;
// Match dropdown.scss for all `a` tags
&.non-details-job-component {
padding: 8px 16px;
}
.ci-job-name-component {
align-items: center;
display: flex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment