Commit 28361089 authored by Marko Kuder's avatar Marko Kuder
Browse files

fix download all button wrapping when size text too large - extend width in this case

parent 53ad6c27
......@@ -263,9 +263,9 @@
{% set zip_res = h.downloadall__pop_zip_resource(c.pkg_dict) %}
{% set resource_size = h.get_resource_size_formatted(zip_res) %}
{% if zip_res %}
<a class="button w-230 resource-url-analytics resource-type-{{ zip_res.resource_type }}" href="{{ zip_res.url }}">
<a class="button w-230 resource-url-analytics resource-type-{{ zip_res.resource_type }}" style="width: auto" href="{{ zip_res.url }}">
{% else %}
<a class="button w-230" disabled="disabled" title="{{ _('This download is not currently available') }}" href="#">
<a class="button w-230" disabled="disabled" style="width: auto" title="{{ _('This download is not currently available') }}" href="#">
{% endif %}
<span class="icon-download"></span><strong>{{ _('Download all') }}{% if resource_size %} ({{ resource_size }}){% endif %}</strong>
</a>
......
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