Skip to content

Commit

Permalink
fix: fixed rounded corners for Card.ImageCap component
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Aug 3, 2023
1 parent 8ecb3b5 commit d77ddd8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Card/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ a.pgn__card {
object-fit: cover;
max-height: inherit;
width: 100%;
border-top-left-radius: $card-image-border-radius;
border-top-right-radius: $card-image-border-radius;
display: none;

&.show {
Expand All @@ -312,6 +314,9 @@ a.pgn__card {
.pgn__card-image-cap {
height: 100%;
max-width: inherit;
border-top-left-radius: $card-image-border-radius;
border-bottom-left-radius: $card-image-border-radius;
border-top-right-radius: 0;
width: auto;
object-fit: cover;
}
Expand Down Expand Up @@ -339,6 +344,8 @@ a.pgn__card {
position: relative;
top: -$loading-skeleton-spacer;
height: 100%;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
}

Expand Down

0 comments on commit d77ddd8

Please sign in to comment.