Skip to content

Commit

Permalink
Fix display of "in progress" builds
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 24, 2024
1 parent f19952a commit 2e27eb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions templates/crate/builds.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
<li>
{%- if build.build_status != "in_progress" %}
<a href="/crate/{{ metadata.name }}/{{ metadata.version }}/builds/{{ build.id }}" class="release">
{%- else -%}
<div class="build">
{%- endif %}
<div class="pure-g">
<div class="pure-u-1 pure-u-sm-1-24 build">
Expand Down Expand Up @@ -81,6 +83,8 @@
</div>
{%- if build.build_status != "in_progress" %}
</a>
{%- else -%}
</div>
{%- endif %}
</li>
{%- endfor -%}
Expand Down
8 changes: 5 additions & 3 deletions templates/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ div.recent-releases-container {
background-color: var(--background-color);
}

.release {
.release, .build {
display: block;
border-bottom: 1px solid var(--color-border);
padding: 0.4em $search-result-right-left-padding;
Expand All @@ -297,11 +297,13 @@ div.recent-releases-container {
}

.release:hover,
a.release:focus {
a.release:focus,
.build:hover {
background-color: var(--color-background-code);
}

li:last-of-type .release {
li:last-of-type .release,
li:last-of-type .build {
border-bottom: none;
}

Expand Down

0 comments on commit 2e27eb6

Please sign in to comment.