diff --git a/src/components/MangaCard.tsx b/src/components/MangaCard.tsx index a9c0f243..bdf47745 100644 --- a/src/components/MangaCard.tsx +++ b/src/components/MangaCard.tsx @@ -29,11 +29,18 @@ const useStyles = makeStyles((theme) => ({ }, gradient: { position: 'absolute', - top: 0, + bottom: 0, width: '100%', - height: '100%', - background: 'linear-gradient(to bottom, transparent, #000000)', - opacity: 0.5, + height: '30%', + background: 'linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%)', + opacity: 1, + }, + gradient2: { + position: 'absolute', + bottom: 0, + width: '100%', + height: '20%', + background: 'linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%)', }, title: { position: 'absolute', @@ -110,6 +117,7 @@ const MangaCard = React.forwardRef((props: IProps, ref) imgClassName={classes.image} />
+
{truncateText(title, 61)}