Default to centre cropping for portrait layout.

This commit is contained in:
Aaron van Geffen 2019-03-09 12:50:16 +01:00
parent 16ec547064
commit d3cb750874

View File

@ -130,7 +130,7 @@ class PhotosIndex extends SubTemplate
<div class="column_portrait">
<div style="border-color: #', $this->color($image), '" class="portrait">';
$this->photo($image, static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, 'top');
$this->photo($image, static::PORTRAIT_WIDTH, static::PORTRAIT_HEIGHT, 'centre');
echo '
</div>
@ -142,7 +142,7 @@ class PhotosIndex extends SubTemplate
echo '
<div style="border-color: #', $this->color($image), '" class="landscape">';
$this->photo($image, static::TILE_WIDTH, static::TILE_HEIGHT, 'top');
$this->photo($image, static::TILE_WIDTH, static::TILE_HEIGHT, 'centre');
echo '
</div>';