button spacing in shelve button pulldown

This commit is contained in:
Mouse Reeve 2020-11-06 09:00:33 -08:00
parent 86f170b11c
commit 8f5d6c11ef

View file

@ -33,13 +33,13 @@
{% for shelf in request.user.shelf_set.all %}
<li>
{% if shelf.identifier == 'reading' and active_shelf.identifier != 'reading' %}
<div class="dropdown-item">
<div class="dropdown-item pt-0 pb-0">
<label class="button is-small" for="start-reading-{{ uuid }}">
{{ shelf.name }}
</label>
</div>
{% else %}
<form class="dropdown-item" name="shelve" action="/shelve/" method="post">
<form class="dropdown-item pt-0 pb-0" name="shelve" action="/shelve/" method="post">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<button class="button is-small" name="shelf" type="submit" value="{{ shelf.identifier }}" {% if shelf in book.shelf_set.all %} disabled {% endif %}>{{ shelf.name }} {% if shelf in book.shelf_set.all %} ✓ {% endif %}</button>