Skip to content

Commit 3c30181

Browse files
fix: style issue
Signed-off-by: saurabhraghuvanshii <saurabhsraghuvanshi@gmail.com>
1 parent 451607e commit 3c30181

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

src/components/Card/Card.style.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,25 @@ export const CardWrapper = styled.div`
6060
6161
.gatsby-image-wrapper,
6262
.old-gatsby-image-wrapper {
63+
width: 100%;
6364
height: 100%;
6465
margin-top: 0.2rem;
6566
transition: all 0.3s ease-in;
67+
68+
& > div,
69+
picture {
70+
width: 100% !important;
71+
height: 100% !important;
72+
}
6673
}
6774
img {
68-
height: inherit;
75+
width: 100%;
76+
height: 100%;
6977
max-height: 180px;
7078
display: block;
71-
text-align: center;
72-
margin: auto;
79+
object-fit: cover;
7380
object-position: center;
81+
margin: 0 auto;
7482
}
7583
}
7684

0 commit comments

Comments
 (0)