Show missing image icon for missing manga thumbnail urls

This commit is contained in:
schroda
2024-09-01 00:44:48 +02:00
parent 05bdcf3905
commit 34095d4f12
2 changed files with 2 additions and 2 deletions

View File

@@ -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>

View File

@@ -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);
} }