From 28ec098d8f064134a33a135914241eb33de0eedc Mon Sep 17 00:00:00 2001 From: PKulkoRaccoonGang Date: Wed, 9 Aug 2023 13:55:55 +0300 Subject: [PATCH] fix: fixed border-radius of the card img --- src/Card/_variables.scss | 2 +- src/Card/index.scss | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Card/_variables.scss b/src/Card/_variables.scss index 0d9ed7a08d4..71b94e3d530 100644 --- a/src/Card/_variables.scss +++ b/src/Card/_variables.scss @@ -41,7 +41,7 @@ $card-logo-bottom-offset-horizontal: .4375rem !default; $card-logo-width: 7.25rem !default; $card-logo-height: 4.125rem !default; -$card-image-border-radius: .3125rem !default; +$card-image-border-radius: $card-border-radius !default; $card-logo-border-radius: .25rem !default; $card-footer-text-font-size: $x-small-font-size; diff --git a/src/Card/index.scss b/src/Card/index.scss index c462b418735..aa60e9d357a 100644 --- a/src/Card/index.scss +++ b/src/Card/index.scss @@ -88,7 +88,7 @@ a.pgn__card { .pgn__card { outline: none; - overflow: hidden; + //overflow: hidden; @include pgn-box-shadow(1, "down"); @@ -295,6 +295,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 { @@ -313,6 +315,9 @@ a.pgn__card { .pgn__card-image-cap { height: 100%; max-width: inherit; + border-top-left-radius: $card-image-border-radius; + border-top-right-radius: 0; + border-bottom-left-radius: $card-image-border-radius; width: auto; object-fit: cover; } @@ -342,6 +347,8 @@ a.pgn__card { height: 100%; border-bottom-right-radius: 0; border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } }