Add chapter page dropdown (#230)

Makes it possible to select a specific page of the current chapter
This commit is contained in:
Daniel
2023-02-08 18:26:09 +01:00
committed by GitHub
parent 2c11708c92
commit c7aaed8378
2 changed files with 42 additions and 7 deletions

View File

@@ -112,6 +112,7 @@ export default function Reader() {
manga={manga}
chapter={chapter as IChapter}
curPage={curPage}
setCurPage={setCurPage}
/>
),
});
@@ -206,9 +207,6 @@ export default function Reader() {
const ReaderComponent = getReaderComponent(settings.readerType);
// last page, also probably read = true, we will load the first page.
const initialPage = chapter.lastPageRead === chapter.pageCount - 1 ? 0 : chapter.lastPageRead;
return (
<Box sx={{ width: settings.staticNav ? 'calc(100vw - 300px)' : '100vw' }}>
<PageNumber settings={settings} curPage={curPage} pageCount={chapter.pageCount} />
@@ -216,7 +214,7 @@ export default function Reader() {
pages={pages}
pageCount={chapter.pageCount}
setCurPage={setCurPage}
initialPage={initialPage}
initialPage={curPage}
curPage={curPage}
settings={settings}
manga={manga}