fix hole banner margins in hole settings

master
Aevann 2023-08-12 18:01:29 +03:00
parent 07309ee35d
commit 8f8f704a27
1 changed files with 5 additions and 5 deletions

View File

@ -47,24 +47,24 @@
<h5 class="mt-5">Banners</h5>
<div class="settings-section rounded sub-banner-update-section">
{% for banner in sub.banner_urls %}
<section id="sub-banner-update-{{loop.index - 1}}" class="d-inline-block sub-settings-subsection">
<section id="sub-banner-update-{{loop.index - 1}}" class="mt-5 d-block sub-settings-subsection">
<img class="mr-3" loading="lazy" alt="/h/{{sub.name}} banner" src="{{banner}}" style="max-height:300px;max-width:100%">
<button class="btn btn-danger sub-banner-delete-button mt-2" id="sub-banner-delete-{{loop.index}}" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/delete/{{loop.index - 1}}');">Delete</button>
</section>
{% else %}
<section id="sub-banner-no-banners" class="d-inline-block sub-settings-subsection">
<section id="sub-banner-no-banners" class="d-block sub-settings-subsection">
{{macros.ghost_box("No banners uploaded", "", 2, "flex:1;")}}
</section>
{% endfor %}
{% if not g.is_tor %}
<section id="sub-banner-upload-new" class="sub-settings-subsection">
<section id="sub-banner-upload-new" class="mt-5 sub-settings-subsection">
<form class="d-inline-block" action="/h/{{sub.name}}/settings/banners/" method="post" enctype="multipart/form-data">
<input hidden name="formkey" value="{{v|formkey}}">
<label class="btn btn-secondary text-capitalize mr-2 mb-0 mt-3">
<label class="btn btn-secondary text-capitalize mr-2 mb-0">
Upload New Banner<input autocomplete="off" type="file" accept="image/*" hidden name="banner" data-nonce="{{g.nonce}}" onchange_submit>
</label>
<button type="button" class="btn btn-danger sub-banner-delete-button mt-3" id="sub-banner-delete-all" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/delete_all');">Delete All Banners</button>
</form>
<button type="button" class="btn btn-danger sub-banner-delete-button" id="sub-banner-delete-all" data-nonce="{{g.nonce}}" data-onclick="areyousure(this)" data-areyousure="postToastReload(this, '/h/{{sub.name}}/settings/banners/delete_all');">Delete All Banners</button>
<div class="text-small text-muted mt-3">
All image files are supported. Max file size is {% if v and v.patron %}16{% else %}8{% endif %} MB.
</div>