fix "publish" button alignment

master
Aevann 2023-01-01 12:38:37 +02:00
parent 77f422b750
commit 681171b3e9
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{% if v and v.id==p.author_id and p.private %} {% if v and v.id==p.author_id and p.private %}
<form action="/publish/{{p.id}}" method="post" class="d-flex"> <form action="/publish/{{p.id}}" method="post" class="d-flex mb-0">
<input type="hidden" name="formkey", value="{{v|formkey}}"> <input type="hidden" name="formkey", value="{{v|formkey}}">
<button type="submit" class="list-inline-item text-small p-0 m-0 mr-3 border-0 nobackground font-weight-bold" type="submit" data-nonce="{{g.nonce}}" data-onclick="disable(this)"><i class="fas fa-globe"></i>Publish</button> <button type="submit" class="list-inline-item text-small p-0 m-0 mr-3 border-0 nobackground font-weight-bold" type="submit" data-nonce="{{g.nonce}}" data-onclick="disable(this)"><i class="fas fa-globe"></i>Publish</button>
</form> </form>

View File

@ -1,5 +1,5 @@
{% if v and v.id==p.author_id and p.private %} {% if v and v.id==p.author_id and p.private %}
<form class="btn-block" action="/publish/{{p.id}}" method="post"> <form class="btn-block mb-0" action="/publish/{{p.id}}" method="post">
<input type="hidden" name="formkey", value="{{v|formkey}}"> <input type="hidden" name="formkey", value="{{v|formkey}}">
<button type="submit" class="nobackground btn btn-link btn-lg text-left text-muted" data-bs-dismiss="modal" type="submit" data-nonce="{{g.nonce}}" data-onclick="disable(this)"><i class="fas fa-globe text-center mr-2"></i>Publish</button> <button type="submit" class="nobackground btn btn-link btn-lg text-left text-muted" data-bs-dismiss="modal" type="submit" data-nonce="{{g.nonce}}" data-onclick="disable(this)"><i class="fas fa-globe text-center mr-2"></i>Publish</button>
</form> </form>