Skip to content

Commit

Permalink
Merge pull request #274 from djangoindia/events_card_fixed
Browse files Browse the repository at this point in the history
Fixed events card to fit images better
  • Loading branch information
DevilsAutumn authored Jan 18, 2025
2 parents 4c82fe0 + 452d8a5 commit 2b83eba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/containers/Event/Event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const EventContainer = async ({
return (
<div>
<div className='container'>
<div className='relative mx-auto my-12 h-96 w-full overflow-hidden rounded-2xl shadow-xl'>
<div className='relative mx-auto my-12 h-[60vh] w-full overflow-hidden rounded-2xl shadow-xl'>
<Image
src={cover_image ?? event1}
alt={name}
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/sections/EventSection/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ const EventCard: React.FC<EventProps> = ({
className='rounded-t-lg'
style={{
maxWidth: '100%',
height: 'auto',
height: '100%',
objectFit: 'cover',
}}
/>
</div>
Expand Down

0 comments on commit 2b83eba

Please sign in to comment.