From 8e1d26ff11e600eb93dd1cd3cd01aaf287c100cf Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Fri, 16 Sep 2016 15:55:31 +0800 Subject: Show initals when avatar image is unavailable or not fully loaded --- src/avatars.less | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/avatars.less b/src/avatars.less index e744e1f..6466800 100644 --- a/src/avatars.less +++ b/src/avatars.less @@ -35,7 +35,9 @@ img { border-radius: 50%; height: 100%; + position: relative; width: 100%; + z-index: 99; } .avatar-icon { @@ -55,5 +57,6 @@ position: absolute; top: 50%; transform: translate(-50%, -50%); + z-index: 0; } } -- cgit v1.3.1-23-gd82d