Skip to content

Commit

Permalink
Making images taking a fixed about of space
Browse files Browse the repository at this point in the history
  • Loading branch information
Mau-MD committed Jul 15, 2022
1 parent d257717 commit ace4330
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/components/Dashboard/CourseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ const CourseCard = ({
/>
}
>
<Image src={src} cursor="pointer" w={"100%"}></Image>
<Box w="100%px" h="200px">
<Image
src={src}
cursor="pointer"
w="100%"
h="100%"
objectFit={"cover"}
/>
</Box>
</Tooltip>
<Flex
padding={4}
Expand Down

0 comments on commit ace4330

Please sign in to comment.