mirror of
https://codeberg.org/openpgp/notes.git
synced 2025-09-09 11:19:41 +02:00
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:
parent
f39e48b183
commit
b474753e90
2 changed files with 8 additions and 3 deletions
|
@ -66,6 +66,9 @@ Cover
|
|||
*/
|
||||
|
||||
div.cover-img {
|
||||
margin: auto;
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div.cover-img span img {
|
||||
height: 100%;
|
||||
}
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue