{{ book.alt_text }}
+ {% if text_append %} +{{ text_append }}
+ {% endif %}diff --git a/bookwyrm/static/css/bookwyrm.css b/bookwyrm/static/css/bookwyrm.css index f8d3b5316..098424cc1 100644 --- a/bookwyrm/static/css/bookwyrm.css +++ b/bookwyrm/static/css/bookwyrm.css @@ -30,6 +30,9 @@ button { /* Corrects inability to style clickable `input` types in iOS */ -webkit-appearance: none; + + /* Generalizes pointer cursor */ + cursor: pointer; } button::-moz-focus-inner { @@ -64,6 +67,14 @@ button::-moz-focus-inner { overflow-x: auto; } +.modal-card { + pointer-events: none; +} + +.modal-card > * { + pointer-events: all; +} + /* stylelint-disable no-descending-specificity */ .modal-card:focus { outline-style: auto; @@ -148,6 +159,16 @@ button::-moz-focus-inner { display: inline !important; } +img.is-fit-cover { + object-fit: cover; + object-position: center; +} + +img.is-fit-contain { + object-fit: contain; + object-position: center; +} + /** File input styles ******************************************************************************/ @@ -429,6 +450,8 @@ details.dropdown .dropdown-menu a:focus-visible { display: flex; align-items: center; justify-content: center; + flex-direction: column; + gap: 1em; white-space: initial; text-align: center; } diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index 27d061a28..e6823812a 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -61,24 +61,34 @@
{% trans "Failed to load cover" %}
+ {% endif %} + {% else %} + {% include 'snippets/book_cover.html' with size='xxlarge' size_mobile='medium' book=book cover_class='is-h-m-mobile' %} + {% endif %} + {% endif %} + + {% if book.cover %} + + {% include 'book/cover_show_modal.html' with book=book id="cover_show_modal" %} + {% endif %} + {% include 'snippets/rate_action.html' with user=request.user book=book %}{% trans "Failed to load cover" %}
- {% endif %} -{{ book.alt_text }}
+ {% if text_append %} +{{ text_append }}
+ {% endif %}