Prevent invisible pages (#614)

Sometimes after changing the current page, the next page had 0 width and thus was invisible.
This commit is contained in:
schroda
2024-02-21 02:32:09 +01:00
committed by GitHub
parent 97ab4004a6
commit d8ee676d55

View File

@@ -61,7 +61,13 @@ export const Page = forwardRef((props: IProps, ref: any) => {
return ( return (
<Box <Box
ref={ref} ref={ref}
sx={{ display: 'flex', justifyContent: 'center', minWidth: isDoublePageReader ? '100%' : undefined }} sx={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
minWidth: isDoublePageReader ? '100%' : undefined,
}}
> >
<SpinnerImage <SpinnerImage
src={src} src={src}