Skip to content

Commit 21bb931

Browse files
authored
Use full available width for reader component (#618)
Due to horizontally centering the flex-box items via "alignItems", the items did not stretch anymore, which is the default value for "alignItems" and thus, did not take up the available width. Regression introduced with ab0ecf4
1 parent 629b742 commit 21bb931

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

src/screens/Reader.tsx

+15-13
Original file line numberDiff line numberDiff line change
@@ -423,19 +423,21 @@ export function Reader() {
423423
}}
424424
>
425425
<PageNumber settings={settings} curPage={curPage} pageCount={chapter.pageCount} />
426-
<ReaderComponent
427-
key={chapter.id}
428-
pages={pages}
429-
pageCount={chapter.pageCount}
430-
setCurPage={setCurPage}
431-
initialPage={initialPage}
432-
curPage={curPage}
433-
settings={settings}
434-
manga={manga}
435-
chapter={chapter}
436-
nextChapter={loadNextChapter}
437-
prevChapter={loadPrevChapter}
438-
/>
426+
<Box sx={{ alignSelf: 'stretch' }}>
427+
<ReaderComponent
428+
key={chapter.id}
429+
pages={pages}
430+
pageCount={chapter.pageCount}
431+
setCurPage={setCurPage}
432+
initialPage={initialPage}
433+
curPage={curPage}
434+
settings={settings}
435+
manga={manga}
436+
chapter={chapter}
437+
nextChapter={loadNextChapter}
438+
prevChapter={loadPrevChapter}
439+
/>
440+
</Box>
439441
</Box>
440442
);
441443
}

0 commit comments

Comments
 (0)