From bbe8a5677958b758b68801af3d0f311ab45cbdf1 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Thu, 23 May 2024 13:54:11 +0200 Subject: [PATCH] Cleanup rendering of bookmark icon of ChapterCards Gets rid of "position" and "top" usage --- src/components/chapter/ChapterCard.tsx | 32 ++++++++++++-------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/components/chapter/ChapterCard.tsx b/src/components/chapter/ChapterCard.tsx index ef440fd5..56ce558c 100644 --- a/src/components/chapter/ChapterCard.tsx +++ b/src/components/chapter/ChapterCard.tsx @@ -83,12 +83,7 @@ export const ChapterCard: React.FC = (props: IProps) => { {(popupState) => ( - + = (props: IProps) => { }} > - - {chapter.isBookmarked && ( - - )} - {showChapterNumber - ? `${t('chapter.title')} ${chapter.chapterNumber}` - : chapter.name} - + + {chapter.isBookmarked && } + + {showChapterNumber + ? `${t('chapter.title')} ${chapter.chapterNumber}` + : chapter.name} + + {chapter.scanlator} {getDateString(Number(chapter.uploadDate ?? 0), true)}