Add aspect-ratio
This commit is contained in:
parent
d06ed53471
commit
29ce8fc554
2 changed files with 2 additions and 0 deletions
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue