mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-17 20:56:08 +00:00
cover: List:
- Reduce Padding around covers. - Remove `content` which is applying too extensive default styles.
This commit is contained in:
parent
9ea91d8e7c
commit
75a69988e4
1 changed files with 42 additions and 28 deletions
|
@ -18,18 +18,29 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<ol start="{{ items.start_index }}">
|
<ol start="{{ items.start_index }}">
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
<li class="block pb-3">
|
<li class="block mb-5">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-content columns p-0 pr-2 mb-0 is-mobile">
|
{% with book=item.book %}
|
||||||
<div class="column is-narrow pt-0 pb-0">
|
<div
|
||||||
<a href="{{ item.book.local_path }}">{% include 'snippets/book_cover.html' with book=item.book size="medium" %}</a>
|
class="
|
||||||
|
card-content p-0 mb-0
|
||||||
|
columns is-mobile is-gapless
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div class="column">
|
||||||
|
<a href="{{ item.book.local_path }}" aria-hidden="true">
|
||||||
|
{% include 'snippets/book_cover.html' %}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-flex-direction-column is-align-items-self-start">
|
|
||||||
<span>{% include 'snippets/book_titleby.html' with book=item.book %}</span>
|
<div class="column is-9-mobile is-10-tablet ml-3">
|
||||||
|
<span>{% include 'snippets/book_titleby.html' %}</span>
|
||||||
{% include 'snippets/stars.html' with rating=item.book|rating:request.user %}
|
{% include 'snippets/stars.html' with rating=item.book|rating:request.user %}
|
||||||
{% include 'snippets/shelve_button/shelve_button.html' with book=item.book %}
|
{% include 'snippets/shelve_button/shelve_button.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
<div class="card-footer has-background-white-bis is-align-items-baseline">
|
<div class="card-footer has-background-white-bis is-align-items-baseline">
|
||||||
<div class="card-footer-item">
|
<div class="card-footer-item">
|
||||||
<div>
|
<div>
|
||||||
|
@ -66,7 +77,7 @@
|
||||||
{% include "snippets/pagination.html" with page=items %}
|
{% include "snippets/pagination.html" with page=items %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="column is-one-quarter content">
|
<section class="column is-one-quarter">
|
||||||
<h2>{% trans "Sort List" %}</h2>
|
<h2>{% trans "Sort List" %}</h2>
|
||||||
<form name="sort" action="{% url 'list' list.id %}" method="GET" class="block">
|
<form name="sort" action="{% url 'list' list.id %}" method="GET" class="block">
|
||||||
<label class="label" for="id_sort_by">{% trans "Sort By" %}</label>
|
<label class="label" for="id_sort_by">{% trans "Sort By" %}</label>
|
||||||
|
@ -108,15 +119,18 @@
|
||||||
<p>{% trans "No books found" %}</p>
|
<p>{% trans "No books found" %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if suggested_books|length > 0 %}
|
||||||
{% for book in suggested_books %}
|
{% for book in suggested_books %}
|
||||||
{% if book %}
|
<div class="columns is-mobile is-gapless">
|
||||||
<div class="block columns is-mobile">
|
<a class="column" href="{{ book.local_path }}" aria-hidden="true">
|
||||||
<div class="column is-narrow">
|
{% include 'snippets/book_cover.html' with book=book %}
|
||||||
<a href="{{ book.local_path }}">{% include 'snippets/book_cover.html' with book=book size="small" %}</a>
|
</a>
|
||||||
</div>
|
|
||||||
<div class="column">
|
<div class="column is-9-mobile is-8-tablet ml-3">
|
||||||
<p>{% include 'snippets/book_titleby.html' with book=book %}</p>
|
<p>{% include 'snippets/book_titleby.html' with book=book %}</p>
|
||||||
<form name="add-book" method="post" action="{% url 'list-add-book' %}">
|
|
||||||
|
<form class="mt-1" name="add-book" method="post" action="{% url 'list-add-book' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="book" value="{{ book.id }}">
|
<input type="hidden" name="book" value="{{ book.id }}">
|
||||||
<input type="hidden" name="list" value="{{ list.id }}">
|
<input type="hidden" name="list" value="{{ list.id }}">
|
||||||
|
@ -124,9 +138,9 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue