File tree Expand file tree Collapse file tree
src/components/UpcomingEventCard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,9 +21,20 @@ const UpcomingEventsWrapper = styled.div`
2121 .blog-slider_img{
2222 max-height: 25rem;
2323 object-fit: cover;
24+ display: flex;
25+ align-items: center;
26+ justify-content: center;
27+ overflow: hidden;
2428 .gatsby-image-wrapper {
29+ width: 100%;
30+ height: 100%;
31+ display: flex;
32+ align-items: center;
33+ justify-content: center;
2534 img {
2635 max-height: 25rem;
36+ object-fit: cover;
37+ width: 100%;
2738 }
2839 }
2940 }
@@ -111,4 +122,4 @@ const UpcomingEventsWrapper = styled.div`
111122 }
112123` ;
113124
114- export default UpcomingEventsWrapper ;
125+ export default UpcomingEventsWrapper ;
Original file line number Diff line number Diff line change @@ -68,4 +68,4 @@ const UpcomingEvents = ({ data }) => {
6868 ) ;
6969} ;
7070
71- export default UpcomingEvents ;
71+ export default UpcomingEvents ;
You can’t perform that action at this time.
0 commit comments