Fix spacing and vertical alignment on build status icon on commits page

This commit is contained in:
Clement Ho 2016-08-09 11:58:42 -05:00
parent 6df51b35d5
commit 9cb3fcda28
3 changed files with 23 additions and 1 deletions

View file

@ -52,6 +52,7 @@ v 8.11.0 (unreleased)
- Gitlab::Metrics.current_transaction needs to be public for RailsQueueDuration - Gitlab::Metrics.current_transaction needs to be public for RailsQueueDuration
- Fix search for notes which belongs to deleted objects - Fix search for notes which belongs to deleted objects
- Add GitLab Workhorse version to admin dashboard (Katarzyna Kobierska Ula Budziszewska) - Add GitLab Workhorse version to admin dashboard (Katarzyna Kobierska Ula Budziszewska)
- Fix spacing and vertical alignment on build status icon on commits page (ClemMakesApps)
- Allow branch names ending with .json for graph and network page !5579 (winniehell) - Allow branch names ending with .json for graph and network page !5579 (winniehell)
- Add the `sprockets-es6` gem - Add the `sprockets-es6` gem
- Multiple trigger variables show in separate lines (Katarzyna Kobierska Ula Budziszewska) - Multiple trigger variables show in separate lines (Katarzyna Kobierska Ula Budziszewska)

View file

@ -66,6 +66,26 @@
margin-left: 8px; margin-left: 8px;
} }
} }
.ci-status-link {
margin-left: 2px;
svg {
vertical-align: middle;
}
.ci-status-label {
display: inline-block;
}
&:hover {
text-decoration: none;
.ci-status-label {
text-decoration: underline;
}
}
}
} }
.ci-status-link { .ci-status-link {

View file

@ -56,7 +56,8 @@
= pluralize(@commit.pipelines.count, 'pipeline') = pluralize(@commit.pipelines.count, 'pipeline')
= link_to builds_namespace_project_commit_path(@project.namespace, @project, @commit.id), class: "ci-status-link ci-status-icon-#{@commit.status}" do = link_to builds_namespace_project_commit_path(@project.namespace, @project, @commit.id), class: "ci-status-link ci-status-icon-#{@commit.status}" do
= ci_icon_for_status(@commit.status) = ci_icon_for_status(@commit.status)
= ci_label_for_status(@commit.status) %span.ci-status-label
= ci_label_for_status(@commit.status)
- if @commit.pipelines.duration - if @commit.pipelines.duration
in in
= time_interval_in_words @commit.pipelines.duration = time_interval_in_words @commit.pipelines.duration