Add scanlator to reader desktop nav bar

This commit is contained in:
schroda
2024-12-19 00:36:01 +01:00
parent 713326d1a2
commit 528dcaafab
2 changed files with 16 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ export const ReaderNavBarDesktop = ({ isVisible, openSettings }: ReaderNavBarDes
mangaId={manga.id} mangaId={manga.id}
mangaTitle={manga.title} mangaTitle={manga.title}
chapterTitle={currentChapter.name} chapterTitle={currentChapter.name}
scanlator={currentChapter.scanlator}
/> />
<ReaderNavBarDesktopActions <ReaderNavBarDesktopActions
currentChapter={currentChapter} currentChapter={currentChapter}

View File

@@ -18,10 +18,12 @@ export const ReaderNavBarDesktopMetadata = ({
mangaId, mangaId,
mangaTitle, mangaTitle,
chapterTitle, chapterTitle,
scanlator,
}: { }: {
mangaId: number; mangaId: number;
mangaTitle: string; mangaTitle: string;
chapterTitle: string; chapterTitle: string;
scanlator?: string | null;
}) => ( }) => (
<Stack> <Stack>
<Tooltip title={mangaTitle} placement="right"> <Tooltip title={mangaTitle} placement="right">
@@ -40,5 +42,18 @@ export const ReaderNavBarDesktopMetadata = ({
{chapterTitle} {chapterTitle}
</TypographyMaxLines> </TypographyMaxLines>
</Tooltip> </Tooltip>
{scanlator && (
<Tooltip title={scanlator} placement="right">
<TypographyMaxLines
lines={4}
variant="body2"
component="h3"
color="textDisabled"
sx={{ textAlign: 'center' }}
>
{scanlator}
</TypographyMaxLines>
</Tooltip>
)}
</Stack> </Stack>
); );