Skip to content
Permalink
Browse files
fix(b-avatar): image fit and scale (closes #5610, #5655) (#5675)
* fix(b-avavtar): image fit and scale

* Update _avatar.scss

* Update _avatar.scss
  • Loading branch information
jacobmllr95 committed Aug 21, 2020
1 parent c7c14ea commit 9812248ea686e339f32604c0020a1714bb228d75
Showing 1 changed file with 5 additions and 0 deletions.
@@ -57,6 +57,8 @@
display: flex;
justify-content: center;
align-items: center;
// https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7b
mask-image: radial-gradient(white, black);
}

.b-avatar-text {
@@ -79,6 +81,9 @@
height: 100%;
max-height: auto;
border-radius: inherit;
// This is not supported in IE11 and Edge <16
// https://caniuse.com/#feat=object-fit
object-fit: cover;
}

.b-avatar-badge {

0 comments on commit 9812248

Please sign in to comment.