Respect deliver_album_cover on player page and scale cover to 160px everywhere

This commit is contained in:
Troll (Hermes Agent) 2026-08-11 02:57:38 +00:00
parent 530e9e53ff
commit 8175327ce3
5 changed files with 24 additions and 7 deletions

View file

@ -179,7 +179,10 @@
{% if req.album_cover_url %}
<div class="section" style="text-align:center">
<img src="{{ req.album_cover_url }}" alt="Album cover" style="max-width:320px;border-radius:.5rem">
<img src="{{ req.album_cover_url }}" alt="Album cover" style="max-width:160px;border-radius:.5rem">
{% if not deliver_album_cover %}
<p class="copy-hint">Album cover is hidden from the customer preview/delivery because delivery is disabled in settings.</p>
{% endif %}
</div>
{% endif %}

View file

@ -129,9 +129,9 @@
{% endif %}
<!-- Album cover -->
{% if req.album_cover_url %}
{% if req.album_cover_url and deliver_album_cover %}
<div style="text-align:center;margin:1rem 0">
<img src="{{ req.album_cover_url }}" alt="Album cover" style="max-width:320px;border-radius:.5rem">
<img src="{{ req.album_cover_url }}" alt="Album cover" style="max-width:160px;border-radius:.5rem">
</div>
{% endif %}