Skip to content

Commit

Permalink
fix(b-avatar): image fit and scale (closes #5610, #5655) (#5675)
Browse files Browse the repository at this point in the history
* fix(b-avavtar): image fit and scale

* Update _avatar.scss

* Update _avatar.scss
  • Loading branch information
jacobmllr95 authored Aug 21, 2020
1 parent c7c14ea commit 9812248
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/avatar/_avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 9812248

Please sign in to comment.