From b0f8ca544d352cf3919ac619c021fe9dde0c9606 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 28 Mar 2018 17:43:36 -0400 Subject: [PATCH] fix(avatar): adjust wide images to fill instead of squish --- core/src/components/avatar/avatar.scss | 2 ++ core/src/components/avatar/test/basic/index.html | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/core/src/components/avatar/avatar.scss b/core/src/components/avatar/avatar.scss index 0570a532c0..2495151f6a 100644 --- a/core/src/components/avatar/avatar.scss +++ b/core/src/components/avatar/avatar.scss @@ -11,4 +11,6 @@ ion-avatar { ion-avatar img { width: 100%; height: 100%; + + object-fit: cover; } diff --git a/core/src/components/avatar/test/basic/index.html b/core/src/components/avatar/test/basic/index.html index 67f5fdf142..b8e499c35d 100644 --- a/core/src/components/avatar/test/basic/index.html +++ b/core/src/components/avatar/test/basic/index.html @@ -35,6 +35,13 @@ Item Avatar + + + + + + Wide Avatar +