diff --git a/src/components/MangaCard.tsx b/src/components/MangaCard.tsx index fa41ffebcf..1e75a2df9e 100644 --- a/src/components/MangaCard.tsx +++ b/src/components/MangaCard.tsx @@ -10,7 +10,7 @@ import Card from '@mui/material/Card'; import CardActionArea from '@mui/material/CardActionArea'; import Typography from '@mui/material/Typography'; import { Link } from 'react-router-dom'; -import { Grid } from '@mui/material'; +import { Avatar, CardContent, Grid } from '@mui/material'; import useLocalStorage from 'util/useLocalStorage'; import SpinnerImage from 'components/util/SpinnerImage'; import { Box, styled } from '@mui/system'; @@ -84,85 +84,150 @@ const MangaCard = React.forwardRef((props: IProps, ref) const [serverAddress] = useLocalStorage('serverBaseURL', ''); const [useCache] = useLocalStorage('useCache', true); - return ( - - - - + + - + - - { showUnreadBadge && unread! > 0 && ( - - {unread} - - )} - { showDownloadBadge && downloadCount! > 0 && ( - + { showUnreadBadge && unread! > 0 && ( + + {unread} + + )} + { showDownloadBadge && downloadCount! > 0 && ( + + {downloadCount} + + )} + + - {downloadCount} - + /> + {(gridLayout === 1) ? (<>) : ( + <> + + + )} - - + ) : ( + + {truncateText(title, 61)} + + )} + + + {(gridLayout === 1) ? ( + - {(gridLayout === 1) ? (<>) : ( - <> - - - - )} - {(gridLayout === 1) ? ( - <> - ) : ( - - {truncateText(title, 61)} - - )} - - - {(gridLayout === 1) ? ( - + > + {truncateText(title, 61)} + + ) : (<>)} + + + + ); + } + return ( + + + + + + {truncateText(title, 61)} - - ) : (<>)} - + + + + { showUnreadBadge && unread! > 0 && ( + + {unread} + + )} + { showDownloadBadge && downloadCount! > 0 && ( + + {downloadCount} + + )} + + ); diff --git a/src/components/library/LibraryOptions.tsx b/src/components/library/LibraryOptions.tsx index f88a610318..60937b160d 100644 --- a/src/components/library/LibraryOptions.tsx +++ b/src/components/library/LibraryOptions.tsx @@ -146,6 +146,16 @@ function dispalyTab(currentTab: number) { /> )} /> + + )} + /> BADGES )} /> - + + + + )} + />