From d1a14d3489b46bb1c6152d8dad5bdce621525f47 Mon Sep 17 00:00:00 2001 From: PuzzleMoon <32855965+puzzlemoondev@users.noreply.github.com> Date: Fri, 24 Jan 2025 21:38:22 +0800 Subject: [PATCH] css img object-fit to preserve aspect ratio --- internal/pkg/epubtemplates/style.css.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/pkg/epubtemplates/style.css.tmpl b/internal/pkg/epubtemplates/style.css.tmpl index cfa4f08..253a4c8 100644 --- a/internal/pkg/epubtemplates/style.css.tmpl +++ b/internal/pkg/epubtemplates/style.css.tmpl @@ -15,4 +15,5 @@ img { margin:0; padding:0; z-index:0; -} \ No newline at end of file + object-fit: contain; +}