mirror of
https://codeberg.org/openpgp/notes.git
synced 2025-09-10 11:49:40 +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 {
|
div.cover-img {
|
||||||
margin: auto;
|
text-align: center;
|
||||||
width: 50%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.cover-img span img {
|
||||||
|
height: 100%;
|
||||||
|
}
|
|
@ -15,6 +15,8 @@ SPDX-License-Identifier: CC-BY-SA-4.0
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="cover-img">
|
<div class="cover-img">
|
||||||
<img src="{{ image }}" alt="Cover image" />
|
<span>
|
||||||
|
<img src="{{ image }}" alt="Cover" />
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue