implement poster position settings #18

This commit is contained in:
ghost 2023-10-31 02:06:58 +02:00
parent cfeeabee72
commit 5c76a17df5
23 changed files with 342 additions and 29 deletions

View file

@ -25,7 +25,7 @@
{% if torrents %}
{% for torrent in torrents %}
<div class="padding-24-px margin-y-8-px border-radius-3-px background-color-night {% if torrent.poster %}background-poster{% endif %}"
{% if torrent.poster %}style="background-image:url('{{ torrent.poster }}')"{% endif %}>
{% if torrent.poster %}style="background-image:url('{{ torrent.poster.url }}');background-position:{{ torrent.poster.position }}"{% endif %}>
<a name="{{ torrent.id }}"></a>
<div class="margin-b-16-px">
<h2>