Add width to image loading placeholder in horizontal mode (#627)
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user