Commit a2a16503 authored by Filipa Lacerda's avatar Filipa Lacerda

Fix vertical alignment of action icon with status icon

parent 1e8271b6
...@@ -654,6 +654,7 @@ ...@@ -654,6 +654,7 @@
i { i {
font-size: 11px; font-size: 11px;
margin-top: 0;
} }
} }
...@@ -672,33 +673,26 @@ ...@@ -672,33 +673,26 @@
} }
// Action Icons // Action Icons
.ci-action-icon-container { .ci-action-icon-container .ci-action-icon-wrapper {
padding: 0; float: right;
margin-top: -1px;
.ci-action-icon-wrapper { i {
display: inline-block; color: $stage-badge-text;
float: right; border-radius: 100%;
border: 1px solid $stage-badge-text;
i { padding: 5px 6px;
color: $stage-badge-text; font-size: 13px;
border-radius: 100%; background: $white-light;
border: 1px solid $stage-badge-text;
text-align: center;
display: table-cell;
vertical-align: middle;
padding: 5px;
font-size: 13px;
background: $white-light;
&:hover { &:hover {
color: $gl-text-color; color: $gl-text-color;
background-color: $stage-hover-bg; background-color: $stage-hover-bg;
border: 1px solid $stage-hover-bg; border: 1px solid $stage-hover-bg;
}
} }
}
.ci-play-icon { .ci-play-icon {
padding: 5px 4px 5px 7px; padding: 5px 5px 5px 7px;
}
} }
} }
...@@ -10,8 +10,7 @@ ...@@ -10,8 +10,7 @@
- status_groups.each do |group_name, grouped_statuses| - status_groups.each do |group_name, grouped_statuses|
- if grouped_statuses.one? - if grouped_statuses.one?
- status = grouped_statuses.first - status = grouped_statuses.first
- is_playable = status.playable? && can?(current_user, :update_build, @project) %li.build
%li.build{ class: ("playable" if is_playable) }
.curve .curve
.build-content .build-content
= render 'ci/status/graph_icon_with_name_and_action', subject: status = render 'ci/status/graph_icon_with_name_and_action', subject: status
......
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