Skip to content

Commit 4dc8df7

Browse files
GuillaumeGomezsyphar
authored andcommitted
Fix display of "in progress" builds
1 parent b7c9322 commit 4dc8df7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Diff for: templates/crate/builds.html

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
<li>
4242
{%- if build.build_status != "in_progress" %}
4343
<a href="/crate/{{ metadata.name }}/{{ metadata.version }}/builds/{{ build.id }}" class="release">
44+
{%- else -%}
45+
<div class="build-in-progress">
4446
{%- endif %}
4547
<div class="pure-g">
4648
<div class="pure-u-1 pure-u-sm-1-24 build">
@@ -78,6 +80,8 @@
7880
</div>
7981
{%- if build.build_status != "in_progress" %}
8082
</a>
83+
{%- else -%}
84+
</div>
8185
{%- endif %}
8286
</li>
8387
{%- endfor -%}

Diff for: templates/style/style.scss

+5-3
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ div.recent-releases-container {
280280
background-color: var(--background-color);
281281
}
282282

283-
.release {
283+
.release, .build-in-progress {
284284
display: block;
285285
border-bottom: 1px solid var(--color-border);
286286
padding: 0.4em $search-result-right-left-padding;
@@ -297,11 +297,13 @@ div.recent-releases-container {
297297
}
298298

299299
.release:hover,
300-
a.release:focus {
300+
a.release:focus,
301+
.build-in-progress:hover {
301302
background-color: var(--color-background-code);
302303
}
303304

304-
li:last-of-type .release {
305+
li:last-of-type .release,
306+
li:last-of-type .build-in-progress {
305307
border-bottom: none;
306308
}
307309

0 commit comments

Comments
 (0)