Add height and width to ebook hero images and grid

This commit is contained in:
Alex Cabal 2021-06-06 21:40:17 -05:00
parent 1610449a5f
commit f674a6c0c2
3 changed files with 3 additions and 2 deletions

View file

@ -106,7 +106,7 @@ catch(\Exception $ex){
<picture>
<? if($ebook->HeroImage2xAvifUrl !== null){ ?><source srcset="<?= $ebook->HeroImage2xAvifUrl ?> 2x, <?= $ebook->HeroImageAvifUrl ?> 1x" type="image/avif"/><? } ?>
<source srcset="<?= $ebook->HeroImage2xUrl ?> 2x, <?= $ebook->HeroImageUrl ?> 1x" type="image/jpg"/>
<img src="<?= $ebook->HeroImage2xUrl ?>" role="presentation" alt=""/>
<img src="<?= $ebook->HeroImage2xUrl ?>" role="presentation" alt="" height="439" width="1318" />
</picture>
</header>