We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72fa624 commit bb97a12Copy full SHA for bb97a12
1 file changed
src/components/Card/Card.style.js
@@ -57,27 +57,22 @@ export const CardWrapper = styled.div`
57
height: 11.5rem;
58
border-top-right-radius: 0.5rem;
59
border-top-left-radius: 0.5rem;
60
- display: flex;
61
- justify-content: center;
62
- align-items: center;
63
64
.gatsby-image-wrapper,
65
.old-gatsby-image-wrapper {
+ width: 100%;
+ height: 100%;
66
margin-top: 0;
67
- max-width: 100%;
68
- max-height: 100%;
69
transition: all 0.3s ease-in;
70
}
71
72
img {
73
74
75
- height: auto;
76
- width: auto;
77
display: block;
78
- object-fit: contain;
+ object-fit: cover;
79
object-position: center;
80
- margin: 0 auto;
+ margin: 0;
81
82
83
@media screen and (max-width: 768px) {
0 commit comments