diff --git a/src/modules/chapter/components/cards/ChapterCard.tsx b/src/modules/chapter/components/cards/ChapterCard.tsx index 287a27ce..477bf473 100644 --- a/src/modules/chapter/components/cards/ChapterCard.tsx +++ b/src/modules/chapter/components/cards/ChapterCard.tsx @@ -38,6 +38,7 @@ import { Chapters, ChapterScanlatorInfo, } from '@/modules/chapter/services/Chapters.ts'; +import { applyStyles } from '@/modules/core/utils/ApplyStyles.ts'; type TChapter = ChapterIdInfo & ChapterMangaInfo & @@ -112,13 +113,9 @@ export const ChapterCard = memo((props: IProps) => { { }} > {chapter.isBookmarked && ( - + )} - + {showChapterNumber ? `${t('chapter.title_one')} ${chapter.chapterNumber}` : chapter.name} - {chapter.scanlator} - + + {chapter.scanlator} + + {getDateString(Number(chapter.uploadDate ?? 0), true)} {isDownloaded && ` • ${t('chapter.status.label.downloaded')}`} - + {selected === null ? ( @@ -181,6 +211,7 @@ export const ChapterCard = memo((props: IProps) => { onClick={(e) => handleClickOpenMenu(e, popupState.open)} aria-label="more" size="large" + color={mode === 'reader' && isActiveChapter ? 'secondary' : 'primary'} > diff --git a/src/modules/core/components/DownloadStateIndicator.tsx b/src/modules/core/components/DownloadStateIndicator.tsx index 63dd1e19..09a062af 100644 --- a/src/modules/core/components/DownloadStateIndicator.tsx +++ b/src/modules/core/components/DownloadStateIndicator.tsx @@ -21,7 +21,7 @@ const DOWNLOAD_STATE_TO_TRANSLATION_KEY_MAP: { [state in DownloadState]: Transla QUEUED: 'download.state.label.queued', } as const; -export const DownloadStateIndicator = ({ chapterId }: { chapterId: ChapterIdInfo['id'] }) => { +export const DownloadStateIndicator = ({ chapterId, color }: { chapterId: ChapterIdInfo['id']; color?: string }) => { const { t } = useTranslation(); const download = Chapters.useDownloadStatusFromCache(chapterId); @@ -44,7 +44,7 @@ export const DownloadStateIndicator = ({ chapterId }: { chapterId: ChapterIdInfo justifyContent: 'center', }} > - {isDownloading && } + {isDownloading && } - + <> {isDownloading && progress} {!isDownloading &&