Apply passed "margin top" to image placeholder

This commit is contained in:
schroda
2024-12-16 23:43:33 +01:00
parent 3ec0cc94bb
commit 33b756219b

View File

@@ -98,6 +98,9 @@ export const ReaderPage = forwardRef(
display: 'none',
}),
...getImageMarginStyling(readingMode.value, doublePage, position),
...applyStyles(marginTop !== undefined, {
mt: `${marginTop}px`,
}),
}}
imgStyle={{
...getImageWidthStyling(
@@ -117,7 +120,9 @@ export const ReaderPage = forwardRef(
objectPosition: position,
userSelect: 'none',
...getImageMarginStyling(readingMode.value, doublePage, position),
mt: `${marginTop}px`,
...applyStyles(marginTop !== undefined, {
mt: `${marginTop}px`,
}),
}}
/>
);