Fix setup and CSS for EPUB cover positioning

Make sure the cover is shown in full height.

Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
David Runge 2023-12-13 09:53:37 +01:00
parent f39e48b183
commit b474753e90
No known key found for this signature in database
GPG key ID: 90D4B9641E092971
2 changed files with 8 additions and 3 deletions

View file

@ -66,6 +66,9 @@ Cover
*/
div.cover-img {
margin: auto;
width: 50%;
text-align: center;
}
div.cover-img span img {
height: 100%;
}

View file

@ -15,6 +15,8 @@ SPDX-License-Identifier: CC-BY-SA-4.0
{% block content %}
<div class="cover-img">
<img src="{{ image }}" alt="Cover image" />
<span>
<img src="{{ image }}" alt="Cover" />
</span>
</div>
{% endblock %}