PhotoPage: fix position and size of blurred photo

This commit is contained in:
2023-11-10 23:22:09 +01:00
parent aa82efe03e
commit 9b192aa7a6
2 changed files with 9 additions and 12 deletions

View File

@@ -73,7 +73,7 @@ class PhotoPage extends Template
if ($this->photo->isPortrait())
{
echo '
<figure id="photo-figure" class="portrait-figure" style="aspect-ratio: ', $this->photo->ratio(), '">',
<figure id="photo-figure" class="portrait-figure">',
$this->photo->getInlineImage(null, 960, 'normal-photo'),
$this->photo->getInlineImage(null, 960, 'blur-photo'), '
</figure>';
@@ -82,7 +82,7 @@ class PhotoPage extends Template
{
$className = $this->photo->isPanorama() ? 'panorama-figure' : 'landscape-figure';
echo '
<figure id="photo-figure" class="', $className, '" style="aspect-ratio: ', $this->photo->ratio(), '">',
<figure id="photo-figure" class="', $className, '">',
$this->photo->getInlineImage(1280, null, 'normal-photo'),
$this->photo->getInlineImage(1280, null, 'blur-photo'), '
</figure>';