Skip to content

Commit e7cfe15

Browse files
Merge pull request #14 from code4rena-dev/mango/fix-card-image-fit
Add object-fit: cover to image element
2 parents 0caeaca + 3a6d195 commit e7cfe15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code4rena/components-library",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Code4rena's official components library ",
55
"types": "./dist/lib.d.ts",
66
"exports": {

src/lib/Card/Card.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454
display: flex;
5555
justify-content: center;
5656
align-items: center;
57-
object-fit: cover;
5857
aspect-ratio: 1/1;
5958
order: 1;
6059

6160
img {
6261
height: 100%;
6362
width: 100%;
63+
object-fit: cover;
6464
}
6565

6666
&--l {

0 commit comments

Comments
 (0)