XW-4529 | get rid of minimum image width to be a hero image

This commit is contained in:
Karol Tatała 2018-02-08 21:55:24 +01:00
parent d974ba80a0
commit f738212983

View file

@ -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;