Prevent pages from being bigger than the 100% in width (#573)

This commit is contained in:
schroda
2024-01-26 20:54:38 +01:00
committed by GitHub
parent 2dab88eb7e
commit 15825fbe53

View File

@@ -41,7 +41,7 @@ export function imageStyle(settings: IReaderSettings): any {
marginLeft: isHorizontal ? '7px' : 0, marginLeft: isHorizontal ? '7px' : 0,
marginRight: isHorizontal ? '7px' : 0, marginRight: isHorizontal ? '7px' : 0,
width: 'auto', width: 'auto',
minHeight: '100vh', maxWidth: settings.fitPageToWindow ? 'calc(100vw - (100vw - 100%))' : undefined,
height: 'auto', height: 'auto',
maxHeight: '100vh', maxHeight: '100vh',
objectFit: 'contain', objectFit: 'contain',