Properly center images in "single page mode"

While the reader width was set images weren't centered correctly in the images wrapper element
This commit is contained in:
schroda
2024-12-17 01:01:58 +01:00
parent 38bcf4aecc
commit e4253633c9
2 changed files with 8 additions and 17 deletions

View File

@@ -97,7 +97,7 @@ export const ReaderPage = forwardRef(
...applyStyles(!display, {
display: 'none',
}),
...getImageMarginStyling(readingMode.value, doublePage, position),
...getImageMarginStyling(doublePage, position),
...applyStyles(marginTop !== undefined, {
mt: `${marginTop}px`,
}),
@@ -119,7 +119,7 @@ export const ReaderPage = forwardRef(
objectFit: 'contain',
objectPosition: position,
userSelect: 'none',
...getImageMarginStyling(readingMode.value, doublePage, position),
...getImageMarginStyling(doublePage, position),
...applyStyles(marginTop !== undefined, {
mt: `${marginTop}px`,
}),