Show missing image icon for missing manga thumbnail urls
This commit is contained in:
@@ -131,7 +131,7 @@ export const SpinnerImage = forwardRef((props: IProps, imgRef: ForwardedRef<HTML
|
|||||||
height="100%"
|
height="100%"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
sx={{ background: (theme) => theme.palette.background.default }}
|
sx={{ background: (theme) => theme.palette.background.default, ...spinnerStyle }}
|
||||||
>
|
>
|
||||||
<ImageIcon fontSize="large" />
|
<ImageIcon fontSize="large" />
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ export class Mangas {
|
|||||||
static getThumbnailUrl(manga: Partial<MangaThumbnailInfo>): string {
|
static getThumbnailUrl(manga: Partial<MangaThumbnailInfo>): string {
|
||||||
const thumbnailUrl = manga.thumbnailUrl
|
const thumbnailUrl = manga.thumbnailUrl
|
||||||
? `${manga.thumbnailUrl}?fetchedAt=${manga.thumbnailUrlLastFetched}`
|
? `${manga.thumbnailUrl}?fetchedAt=${manga.thumbnailUrlLastFetched}`
|
||||||
: 'nonExistingMangaUrl';
|
: '';
|
||||||
return requestManager.getValidImgUrlFor(thumbnailUrl);
|
return requestManager.getValidImgUrlFor(thumbnailUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user