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,9 +272,12 @@ body {
} }
} }
i { &:not(.btn-no-text) {
margin-right: 4px; i {
margin-right: 4px;
}
} }
} }
/** /**

View File

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

View File

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