From 157a549cc747c31c65ea19a68fb65d6118b1e41d Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 24 Mar 2025 23:46:57 +0100 Subject: [PATCH] Remove unnecessary styling --- .../components/viewer/ReaderTransitionPage.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/modules/reader/components/viewer/ReaderTransitionPage.tsx b/src/modules/reader/components/viewer/ReaderTransitionPage.tsx index 0cf2e3f4..95d29e63 100644 --- a/src/modules/reader/components/viewer/ReaderTransitionPage.tsx +++ b/src/modules/reader/components/viewer/ReaderTransitionPage.tsx @@ -137,21 +137,17 @@ const BaseReaderTransitionPage = ({ height: '100%', }), ...applyStyles(isContinuousReadingMode(readingMode), { - position: 'relative', - transform: 'scale(1)', + position: 'sticky', ...applyStyles(isContinuousVerticalReadingMode(readingMode), { - maxWidth: `calc(100vw - ${scrollbarYSize}px - ${readerNavBarWidth}px)`, - position: 'sticky', left: 0, + maxWidth: `calc(100vw - ${scrollbarYSize}px - ${readerNavBarWidth}px)`, minHeight: `calc(100vh - ${scrollbarXSize}px)`, ...applyStyles(!isFitWidthPageScaleMode, { alignItems: 'baseline' }), }), ...applyStyles(readingMode === ReadingMode.CONTINUOUS_HORIZONTAL, { - flexDirection: 'row', - maxHeight: `calc(100vh - ${scrollbarXSize}px)`, - position: 'sticky', top: 0, minWidth: `calc(100vw - ${scrollbarYSize}px - ${readerNavBarWidth}px)`, + maxHeight: `calc(100vh - ${scrollbarXSize}px)`, }), }), }} @@ -165,9 +161,6 @@ const BaseReaderTransitionPage = ({ maxHeight: `calc(100vh - ${scrollbarXSize}px)`, width: 'max-content', p: 1, - ...applyStyles(isContinuousReadingMode(readingMode), { - alignSelf: 'center', - }), }} > {isPreviousType && isFirstChapter && (