Apply passed "margin top" to image placeholder
This commit is contained in:
@@ -98,6 +98,9 @@ export const ReaderPage = forwardRef(
|
|||||||
display: 'none',
|
display: 'none',
|
||||||
}),
|
}),
|
||||||
...getImageMarginStyling(readingMode.value, doublePage, position),
|
...getImageMarginStyling(readingMode.value, doublePage, position),
|
||||||
|
...applyStyles(marginTop !== undefined, {
|
||||||
|
mt: `${marginTop}px`,
|
||||||
|
}),
|
||||||
}}
|
}}
|
||||||
imgStyle={{
|
imgStyle={{
|
||||||
...getImageWidthStyling(
|
...getImageWidthStyling(
|
||||||
@@ -117,7 +120,9 @@ export const ReaderPage = forwardRef(
|
|||||||
objectPosition: position,
|
objectPosition: position,
|
||||||
userSelect: 'none',
|
userSelect: 'none',
|
||||||
...getImageMarginStyling(readingMode.value, doublePage, position),
|
...getImageMarginStyling(readingMode.value, doublePage, position),
|
||||||
mt: `${marginTop}px`,
|
...applyStyles(marginTop !== undefined, {
|
||||||
|
mt: `${marginTop}px`,
|
||||||
|
}),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user