Pass aspect ratio into photo thumbnails
This commit is contained in:
1 parent
326c8f11ee
commit
7d19cf823d
1 file changed
+1
-1
@@ -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 '
|
||||
|
||||
Reference in new issue
Block a user