Commit 9cb3fcda authored by Clement Ho's avatar Clement Ho

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

parent 6df51b35
...@@ -52,6 +52,7 @@ v 8.11.0 (unreleased) ...@@ -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)
......
...@@ -66,6 +66,26 @@ ...@@ -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 {
......
...@@ -56,7 +56,8 @@ ...@@ -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
......
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