Skip to content

Commit 4b690cc

Browse files
committed
Refine the height of the package list table row
Signed-off-by: Thomas Druez <[email protected]>
1 parent efb8586 commit 4b690cc

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

scanpipe/templates/scanpipe/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
button.as-link {height: auto; line-height: initial; font-size: inherit;}
5454
.file.is-boxed.has-name .file-cta {border-width: medium; border-style: dashed;}
5555
progress.file-upload::before {content: 'Files upload: 'attr(value)'%'; position: absolute; top: -14%; left: 43%; color: black; font-weight: 400;}
56-
.is-clipped-list ul {--snippet-spacing: 0.95rem; height: calc(8 * var(--snippet-spacing)); overflow: hidden;}
56+
.is-clipped-list ul {--snippet-spacing: 0.95rem; max-height: calc(8 * var(--snippet-spacing)); overflow: hidden;}
5757
.tab-content {display: none;}
5858
.tab-content.is-active {display: revert !important;}
5959
.breadcrumb a {padding: 0 0.25em;}

scanpipe/templates/scanpipe/package_list.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,17 @@
4040
{{ package.primary_language }}
4141
</td>
4242
<td class="is-clipped-list">
43-
<ul>
44-
{% for resource in package.resources %}
45-
<li>
46-
<a href="{{ resource.get_absolute_url }}" title="{{ resource.path }}">{{ resource.name }}</a>
47-
</li>
48-
{% endfor %}
49-
</ul>
50-
{% if package.resources|length > 5 %}
51-
<button class="button is-small is-fullwidth show-clipped">Show {{ package.resources|length }} resources</button>
43+
{% if package.resources %}
44+
<ul>
45+
{% for resource in package.resources %}
46+
<li>
47+
<a href="{{ resource.get_absolute_url }}" title="{{ resource.path }}">{{ resource.name }}</a>
48+
</li>
49+
{% endfor %}
50+
</ul>
51+
{% if package.resources|length > 5 %}
52+
<button class="button is-small is-fullwidth show-clipped">Show {{ package.resources|length }} resources</button>
53+
{% endif %}
5254
{% endif %}
5355
</td>
5456
</tr>

0 commit comments

Comments
 (0)