From 9531825babc7f4ccc28c3a84022d6ef0aa01ff22 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Wed, 21 Feb 2024 02:32:16 +0100 Subject: [PATCH] Fix size of pages in continues reader mode (#613) In case "fit to page" was enabled, the styling got incorrectly applied to horizontal pages. Causing the pages to be small Regression introduced with 15825fbe530bf1de58565db63545341b84225da9 --- src/components/reader/Page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/reader/Page.tsx b/src/components/reader/Page.tsx index ef1fe910..6083b47b 100644 --- a/src/components/reader/Page.tsx +++ b/src/components/reader/Page.tsx @@ -24,8 +24,9 @@ export function imageStyle(settings: IReaderSettings): any { marginRight: isHorizontal ? '7px' : 0, marginBottom: settings.readerType === 'ContinuesVertical' ? '15px' : 0, width: 'auto', - maxWidth: settings.fitPageToWindow ? 'calc(100vw - (100vw - 100%))' : undefined, + maxWidth: settings.fitPageToWindow && !isHorizontal ? 'calc(100vw - (100vw - 100%))' : undefined, height: 'auto', + minHeight: isHorizontal ? '100vh' : undefined, maxHeight: '100vh', objectFit: 'contain', };