We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a50f74 + 7fe09be commit 765b034Copy full SHA for 765b034
1 file changed
src/components/Card/Card.style.js
@@ -60,16 +60,29 @@ export const CardWrapper = styled.div`
60
61
.gatsby-image-wrapper,
62
.old-gatsby-image-wrapper {
63
+ width: 100%;
64
height: 100%;
- margin-top: 0.2rem;
65
+ margin-top: 0;
66
transition: all 0.3s ease-in;
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: center;
70
}
- img {
- height: inherit;
- max-height: 180px;
71
+
72
+ .gatsby-image-wrapper img,
73
+ .old-gatsby-image-wrapper img {
74
+ max-width: 100%;
75
+ max-height: 100%;
76
+ width: auto;
77
+ height: auto;
78
display: block;
- text-align: center;
- margin: auto;
79
+ object-fit: contain;
80
+ object-position: center;
81
+ margin: 0 auto;
82
+ }
83
84
+ @media screen and (max-width: 768px) {
85
+ height: 9.5rem;
86
87
88
0 commit comments