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:
@@ -28,6 +28,7 @@ export const DoublePage = forwardRef((props: IProps, ref: any) => {
|
|||||||
const imgStyle = {
|
const imgStyle = {
|
||||||
...baseImgStyle,
|
...baseImgStyle,
|
||||||
width: settings.fitPageToWindow ? baseImgStyle.width : `calc(${baseImgStyle.width} * 0.5)`,
|
width: settings.fitPageToWindow ? baseImgStyle.width : `calc(${baseImgStyle.width} * 0.5)`,
|
||||||
|
maxWidth: settings.fitPageToWindow ? `calc(${baseImgStyle.maxWidth} * 0.5)` : baseImgStyle.maxWidth,
|
||||||
};
|
};
|
||||||
|
|
||||||
const spinnerStyle: SxProps<Theme> = {
|
const spinnerStyle: SxProps<Theme> = {
|
||||||
|
|||||||
Reference in New Issue
Block a user