Fit double page reader pages correctly to windows width (#595)

The max-width, which is for a single page, was applied to each page of the double page reader, which resulted in both of them being able to take up 100% of the available width
This commit is contained in:
schroda
2024-02-13 01:53:18 +01:00
committed by GitHub
parent 4ffd3584c6
commit d244ba6538

View File

@@ -28,6 +28,7 @@ export const DoublePage = forwardRef((props: IProps, ref: any) => {
const imgStyle = {
...baseImgStyle,
width: settings.fitPageToWindow ? baseImgStyle.width : `calc(${baseImgStyle.width} * 0.5)`,
maxWidth: settings.fitPageToWindow ? `calc(${baseImgStyle.maxWidth} * 0.5)` : baseImgStyle.maxWidth,
};
const spinnerStyle: SxProps<Theme> = {