Add width to image loading placeholder in horizontal mode (#627)

This commit is contained in:
schroda
2024-03-01 18:27:35 +01:00
committed by GitHub
parent 2a72cd43db
commit d242552751

View File

@@ -91,7 +91,12 @@ export const Page = forwardRef((props: IProps, ref: any) => {
spinnerStyle={{ spinnerStyle={{
...imgStyle, ...imgStyle,
height: '100vh', height: '100vh',
width: isMobileWidth ? '100vw' : 'calc(100% * 0.5)', // eslint-disable-next-line no-nested-ternary
width: isMobileWidth
? '100vw'
: isHorizontalReaderType(settings.readerType)
? '50vw'
: 'calc(100% * 0.5)',
backgroundColor: '#525252', backgroundColor: '#525252',
}} }}
imgStyle={imgStyle} imgStyle={imgStyle}