We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb97a12 commit 1633c44Copy full SHA for 1633c44
src/components/Card/Card.style.js
@@ -64,15 +64,25 @@ export const CardWrapper = styled.div`
64
height: 100%;
65
margin-top: 0;
66
transition: all 0.3s ease-in;
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: center;
70
}
71
- img {
72
+ .gatsby-image-wrapper > div,
73
+ .old-gatsby-image-wrapper > div {
74
+ height: auto;
75
width: 100%;
- height: 100%;
76
+ }
77
+
78
+ .gatsby-image-wrapper img,
79
+ .old-gatsby-image-wrapper img {
80
+ max-height: 100%;
81
+ width: auto;
82
display: block;
- object-fit: cover;
83
+ object-fit: contain;
84
object-position: center;
- margin: 0;
85
+ margin: 0 auto;
86
87
88
@media screen and (max-width: 768px) {
0 commit comments