From 10ec7de628978eec481a829a119da80a8af6e86e Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 26 Jan 2024 23:59:12 +0100 Subject: [PATCH] Correctly calculate width (#578) --- src/screens/Reader.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens/Reader.tsx b/src/screens/Reader.tsx index 5d145476..25a79aae 100644 --- a/src/screens/Reader.tsx +++ b/src/screens/Reader.tsx @@ -404,7 +404,9 @@ export function Reader() { flexDirection: 'column', alignContent: 'center', justifyContent: 'center', - minWidth: settings.staticNav ? 'calc((100vw - (100vw - 100%)) - 300px)' : '100vw - (100vw - 100%)', // 100vw = width excluding scrollbar; 100% = width including scrollbar + minWidth: settings.staticNav + ? 'calc((100vw - (100vw - 100%)) - 300px)' + : 'calc(100vw - (100vw - 100%))', // 100vw = width excluding scrollbar; 100% = width including scrollbar minHeight: '100vh', marginLeft: settings.staticNav ? '300px' : 'unset', }}