Skip to content

Commit 8ec235e

Browse files
committed
Update
Signed-off-by: vr-varad <varadgupta21@gmail.com>
1 parent 28751c5 commit 8ec235e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/components/Workshop-Card/WorkshopsCardWrapper.style.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ const WorkshopCardWrapper = styled.div`
4242
width: 100%;
4343
height: auto;
4444
margin-bottom: 1.25rem;
45+
46+
.image {
47+
height: 40rem;
48+
}
49+
4550
}
4651
4752
.image {
@@ -52,7 +57,7 @@ const WorkshopCardWrapper = styled.div`
5257
box-shadow: 0 0 black;
5358
5459
.gatsby-image-wrapper,.old-gatsby-image-wrapper {
55-
height: 90%;
60+
height: 100%;
5661
}
5762
}
5863

src/components/Workshop-Card/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const WorkshopCardContent = ({ frontmatter, content, ID, id }) => {
88
<div className={content && ID === id ? "main-open" : "main"}>
99
<div className={content && ID === id ? "image-container-open" : "image-container"}>
1010
<div className="image">
11-
<Image {...frontmatter.thumbnail} imgStyle={{ objectFit: "cover" }} alt={frontmatter.title} />
11+
<Image {...frontmatter.thumbnail} imgStyle={{ objectFit: "contain" }} alt={frontmatter.title} />
1212
</div>
1313
</div>
1414
<div className="upcomingContainer">

0 commit comments

Comments
 (0)