Add aspect-ratio

This commit is contained in:
Nyymix 2025-04-07 00:18:28 +03:00
parent d06ed53471
commit 29ce8fc554
2 changed files with 2 additions and 0 deletions

View file

@ -22,6 +22,7 @@
<div class="uk-card-media-top">
<a href="{{ album.get_absolute_url }}">
<img src="{{ album.cover_url }}"
style="aspect-ratio: {{ album.cover.aspect_ratio }};"
alt="Cover image for {{ album.name }}"
title="{{ album.name }}"
loading="lazy">

View file

@ -22,6 +22,7 @@
<div class="uk-card-media-top">
<a href="{{ album.get_absolute_url }}">
<img src="{{ album.cover_url }}"
style="aspect-ratio: {{ album.cover.aspect_ratio }};"
alt="Cover image for {{ album.name }}"
title="{{ album.name }}"
loading="lazy">