Prevent "ReaderChapterViewer" from overlapping each other
Seems like not all browsers handle width/height: 100% min-width/min-height: fit-content correctly. the "min" setting just never applies and the size is stuck at 100%.
This commit is contained in:
@@ -344,10 +344,8 @@ const BaseReaderChapterViewer = ({
|
||||
return (
|
||||
<Stack
|
||||
sx={{
|
||||
width: '100%',
|
||||
minWidth: 'fit-content',
|
||||
height: '100%',
|
||||
minHeight: 'fit-content',
|
||||
width: 'fit-content',
|
||||
height: 'fit-content',
|
||||
margin: 'auto',
|
||||
flexWrap: 'nowrap',
|
||||
...applyStyles(shouldHideChapter, {
|
||||
|
||||
@@ -141,14 +141,10 @@ const BaseReaderTransitionPage = ({
|
||||
transform: 'scale(1)',
|
||||
...applyStyles(isContinuousVerticalReadingMode(readingMode), {
|
||||
minHeight: `calc(100vh - ${scrollbarXSize}px)`,
|
||||
maxWidth: '100%',
|
||||
width: '100%',
|
||||
...applyStyles(!isFitWidthPageScaleMode, { alignItems: 'baseline' }),
|
||||
}),
|
||||
...applyStyles(readingMode === ReadingMode.CONTINUOUS_HORIZONTAL, {
|
||||
minWidth: `calc(100vw - ${scrollbarYSize}px - ${readerNavBarWidth}px)`,
|
||||
maxHeight: '100%',
|
||||
height: '100%',
|
||||
justifyContent: 'unset',
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user