forked from Public/pics
Default to centre cropping for portrait layout.
This commit is contained in:
parent
16ec547064
commit
d3cb750874
@ -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>';
|
||||
|
Loading…
Reference in New Issue
Block a user