Skip to content

Commit 10ec7de

Browse files
authored
Correctly calculate width (#578)
1 parent f335b59 commit 10ec7de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/screens/Reader.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,9 @@ export function Reader() {
404404
flexDirection: 'column',
405405
alignContent: 'center',
406406
justifyContent: 'center',
407-
minWidth: settings.staticNav ? 'calc((100vw - (100vw - 100%)) - 300px)' : '100vw - (100vw - 100%)', // 100vw = width excluding scrollbar; 100% = width including scrollbar
407+
minWidth: settings.staticNav
408+
? 'calc((100vw - (100vw - 100%)) - 300px)'
409+
: 'calc(100vw - (100vw - 100%))', // 100vw = width excluding scrollbar; 100% = width including scrollbar
408410
minHeight: '100vh',
409411
marginLeft: settings.staticNav ? '300px' : 'unset',
410412
}}

0 commit comments

Comments
 (0)