mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-26 01:50:34 +00:00
Fix: Display a denser summary book grid and limit big books
Closes #1731
This commit is contained in:
parent
1d1ef6589a
commit
dabd1e919d
2 changed files with 2 additions and 6 deletions
|
@ -695,11 +695,7 @@ ol.ordered-list li::before {
|
||||||
@media only screen and (min-width: 769px) {
|
@media only screen and (min-width: 769px) {
|
||||||
.books-grid {
|
.books-grid {
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
grid-template-columns: repeat(auto-fit, minmax(10em, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(8em, 1fr));
|
||||||
}
|
|
||||||
|
|
||||||
.books-grid > .is-big {
|
|
||||||
padding: 1.5rem 1.5rem 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -249,7 +249,7 @@
|
||||||
<div class="column is-10 is-offset-1">
|
<div class="column is-10 is-offset-1">
|
||||||
<div class="books-grid">
|
<div class="books-grid">
|
||||||
{% for book in books %}
|
{% for book in books %}
|
||||||
{% if book.id in best_ratings_books_ids %}
|
{% if books_total > 12 and book.id in best_ratings_books_ids %}
|
||||||
<a href="{{ book.local_path }}" class="has-text-centered is-big has-text-success-dark">
|
<a href="{{ book.local_path }}" class="has-text-centered is-big has-text-success-dark">
|
||||||
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' size='xxlarge' %}
|
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-auto' size='xxlarge' %}
|
||||||
<span class="book-title is-serif is-size-5">
|
<span class="book-title is-serif is-size-5">
|
||||||
|
|
Loading…
Reference in a new issue