Skip to content

Commit 886d77b

Browse files
remove div
Signed-off-by: saurabhraghuvanshii <saurabhsraghuvanshi@gmail.com>
1 parent ddb469d commit 886d77b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/components/Card/Card.style.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,26 @@ export const CardWrapper = styled.div`
5757
height: 11.5rem;
5858
border-top-right-radius: 0.5rem;
5959
border-top-left-radius: 0.5rem;
60+
display: flex;
61+
justify-content: center;
62+
align-items: center;
63+
padding: 0.75rem;
6064
6165
.gatsby-image-wrapper,
6266
.old-gatsby-image-wrapper {
63-
width: 100%;
64-
height: 100%;
65-
margin-top: 0.2rem;
67+
margin-top: 0;
68+
max-width: 100%;
69+
max-height: 100%;
6670
transition: all 0.3s ease-in;
67-
68-
& > div,
69-
picture {
70-
width: 100%;
71-
height: 100%;
72-
}
7371
}
72+
7473
img {
75-
width: 100%;
76-
height: 100%;
77-
max-height: 180px;
74+
max-width: 100%;
75+
max-height: 100%;
76+
height: auto;
77+
width: auto;
7878
display: block;
79-
object-fit: cover;
79+
object-fit: contain;
8080
object-position: center;
8181
margin: 0 auto;
8282
}

0 commit comments

Comments
 (0)