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 ab0ecf4da0
This commit is contained in:
schroda
2024-02-22 19:24:27 +01:00
committed by GitHub
parent 629b742140
commit 21bb931a74

View File

@@ -423,6 +423,7 @@ export function Reader() {
}}
>
<PageNumber settings={settings} curPage={curPage} pageCount={chapter.pageCount} />
<Box sx={{ alignSelf: 'stretch' }}>
<ReaderComponent
key={chapter.id}
pages={pages}
@@ -437,5 +438,6 @@ export function Reader() {
prevChapter={loadPrevChapter}
/>
</Box>
</Box>
);
}