Skip to content

Commit 2e27eb6

Browse files
Fix display of "in progress" builds
1 parent f19952a commit 2e27eb6

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
@@ -44,6 +44,8 @@
4444
<li>
4545
{%- if build.build_status != "in_progress" %}
4646
<a href="/crate/{{ metadata.name }}/{{ metadata.version }}/builds/{{ build.id }}" class="release">
47+
{%- else -%}
48+
<div class="build">
4749
{%- endif %}
4850
<div class="pure-g">
4951
<div class="pure-u-1 pure-u-sm-1-24 build">
@@ -81,6 +83,8 @@
8183
</div>
8284
{%- if build.build_status != "in_progress" %}
8385
</a>
86+
{%- else -%}
87+
</div>
8488
{%- endif %}
8589
</li>
8690
{%- 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 {
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: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 {
305307
border-bottom: none;
306308
}
307309

0 commit comments

Comments
 (0)