Pass aspect ratio into photo thumbnails

This commit is contained in:
Aaron van Geffen 2023-03-11 17:04:30 +01:00
parent 326c8f11ee
commit 7d19cf823d
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class PhotosIndex extends Template
else
echo ' srcset="', $image->getThumbnailUrl($image->width(), $image->height(), true), ' 2x"';
echo ' alt="" title="', $image->getTitle(), '">';
echo ' alt="" title="', $image->getTitle(), '" style="aspect-ratio: ', $image->ratio(), '">';
if ($this->show_labels)
echo '