Set static size for manga details page covers

This commit is contained in:
schroda
2024-10-07 13:29:25 +02:00
parent cd7ec05ce3
commit d9b633900c
4 changed files with 19 additions and 15 deletions

View File

@@ -21,6 +21,7 @@ import { GridLayout } from '@/modules/library/contexts/LibraryOptionsContext.tsx
import { Mangas } from '@/modules/manga/services/Mangas.ts';
import { SpecificMangaCardProps } from '@/modules/manga/MangaCard.types.tsx';
import { TypographyMaxLines } from '@/modules/core/components/TypographyMaxLines.tsx';
import { MANGA_COVER_ASPECT_RATIO } from '@/modules/manga/Manga.constants.ts';
const BottomGradient = styled('div')({
position: 'absolute',
@@ -92,7 +93,7 @@ export const MangaGridCard = ({
<Card
sx={{
// force standard aspect ratio of manga covers
aspectRatio: '225/350',
aspectRatio: MANGA_COVER_ASPECT_RATIO,
display: 'flex',
}}
>