From 15825fbe530bf1de58565db63545341b84225da9 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 26 Jan 2024 20:54:38 +0100 Subject: [PATCH] Prevent pages from being bigger than the 100% in width (#573) --- src/components/reader/Page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/reader/Page.tsx b/src/components/reader/Page.tsx index e6deeb5e..cc7195dc 100644 --- a/src/components/reader/Page.tsx +++ b/src/components/reader/Page.tsx @@ -41,7 +41,7 @@ export function imageStyle(settings: IReaderSettings): any { marginLeft: isHorizontal ? '7px' : 0, marginRight: isHorizontal ? '7px' : 0, width: 'auto', - minHeight: '100vh', + maxWidth: settings.fitPageToWindow ? 'calc(100vw - (100vw - 100%))' : undefined, height: 'auto', maxHeight: '100vh', objectFit: 'contain',