Improve download user album button

This commit is contained in:
Antoine Bartuccio 2025-02-20 18:51:08 +01:00
parent a87016a23f
commit 2918048b16
3 changed files with 7 additions and 4 deletions

View File

@ -272,11 +272,14 @@ body {
}
}
&:not(.btn-no-text) {
i {
margin-right: 4px;
}
}
}
/**
* A spacer below an element. Somewhat cleaner than putting <br/> everywhere.
*/

View File

@ -53,7 +53,7 @@
<div x-show="pictures.length > 0" x-cloak>
<button
:disabled="isDownloading"
class="btn btn-blue"
class="btn btn-blue {% if name == "" %}btn-no-text{% endif %}"
@click="downloadZip()"
>
<i class="fa fa-download"></i>{{ name }}

View File

@ -26,7 +26,7 @@
<div class="row">
<h4 x-text="album"></h4>
{% if user.id == object.id %}
{{ download_button("") }}
&nbsp;{{ download_button("") }}
{% endif %}
</div>
<div class="photos">