Skip to content

Commit 4d248d4

Browse files
authored
fix resource card image position (#1569)
1 parent 35e0bd5 commit 4d248d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/cards/ResourceCard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ export const ResourceCard = (props: ResourceCardProps) => {
6969
<Card sx={cardStyle}>
7070
<CardActionArea href={href} sx={{ height: '100%' }} component={i18nLink}>
7171
<CardContent sx={cardContentStyle}>
72-
<Box height="130px" position="relative" width="100%" overflow="hidden">
72+
<Box height="140px" position="relative" width="100%" overflow="hidden">
7373
<Image
7474
src={image?.filename || '/bloom_shorts.png'}
7575
objectFit="cover"
76+
objectPosition="top"
7677
fill
7778
alt={image?.alt || 'Bloom shorts default image'} // TODO create a message for this image
7879
/>

0 commit comments

Comments
 (0)