Add missing gap to VerticalReader mode with fit to window setting (#574)

This commit is contained in:
schroda
2024-01-26 20:55:27 +01:00
committed by GitHub
parent ab4cddfedd
commit 771d6beb18

View File

@@ -40,6 +40,7 @@ export function imageStyle(settings: IReaderSettings): any {
return {
marginLeft: isHorizontal ? '7px' : 0,
marginRight: isHorizontal ? '7px' : 0,
marginBottom: settings.readerType === 'ContinuesVertical' ? '15px' : 0,
width: 'auto',
maxWidth: settings.fitPageToWindow ? 'calc(100vw - (100vw - 100%))' : undefined,
height: 'auto',