mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
XW-4529 | get rid of minimum image width to be a hero image
This commit is contained in:
parent
d974ba80a0
commit
f738212983
|
@ -161,11 +161,7 @@ class PortableInfoboxMobileRenderService extends PortableInfoboxRenderService {
|
|||
}
|
||||
|
||||
if ( $type === 'image' && !isset( $heroData['image'] ) && count( $item['data'] ) === 1 ) {
|
||||
$imageWidth = $this->getImageHelper()->getFileWidth( $item['data'][0]['name'] );
|
||||
|
||||
if ( $imageWidth >= self::MINIMAL_HERO_IMG_WIDTH ) {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue