From f674a6c0c2ff05246b255783f0a193f4b7faa67d Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sun, 6 Jun 2021 21:40:17 -0500 Subject: [PATCH] Add height and width to ebook hero images and grid --- templates/EbookGrid.php | 2 +- www/css/core.css | 1 + www/ebooks/ebook.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/EbookGrid.php b/templates/EbookGrid.php index c8bb14ca..542eb13b 100644 --- a/templates/EbookGrid.php +++ b/templates/EbookGrid.php @@ -25,7 +25,7 @@ if(!isset($ebooks)){ CoverImage2xAvifUrl !== null){ ?> - The cover for the Standard Ebooks edition of <?= Formatter::ToPlainText(strip_tags($ebook->TitleWithCreditsHtml)) ?> + The cover for the Standard Ebooks edition of <?= Formatter::ToPlainText(strip_tags($ebook->TitleWithCreditsHtml)) ?>

Title) ?>

diff --git a/www/css/core.css b/www/css/core.css index 264124e8..7705a19f 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -1295,6 +1295,7 @@ main.ebooks > ol > li p{ main.ebooks > ol > li img{ box-sizing: border-box; max-width: 100%; + height: auto; border: 1px solid var(--border); border-radius: .25rem; } diff --git a/www/ebooks/ebook.php b/www/ebooks/ebook.php index 8c1c8208..68b6bf4a 100644 --- a/www/ebooks/ebook.php +++ b/www/ebooks/ebook.php @@ -106,7 +106,7 @@ catch(\Exception $ex){ HeroImage2xAvifUrl !== null){ ?> - +