Skip to content

Commit 08d6036

Browse files
Merge pull request #7633 from AnkitRewar11/fix/events-image-alignment-v2
fix: center event image and fix Join Now button navigation #7623
2 parents 4f5ed4d + 33ec365 commit 08d6036

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/components/UpcomingEventCard/EventCard.style.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

src/components/UpcomingEventCard/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ const UpcomingEvents = ({ data }) => {
6868
);
6969
};
7070

71-
export default UpcomingEvents;
71+
export default UpcomingEvents;

0 commit comments

Comments
 (0)