diff --git a/src/components/User/UserTooltip.jsx b/src/components/User/UserTooltip.jsx index 4432fd3d6..4eee405e4 100644 --- a/src/components/User/UserTooltip.jsx +++ b/src/components/User/UserTooltip.jsx @@ -2,13 +2,12 @@ import React from 'react' import PropTypes from 'prop-types' import _ from 'lodash' import { Tooltip } from 'appirio-tech-react-components' -import UserAvatar from './UserAvatar' +import { Avatar } from 'appirio-tech-react-components' import { DOMAIN } from '../../../config/constants' require('./UserTooltip.scss') const UserTooltip = ({ usr, id, previewAvatar }) => { - const rating = _.get(usr, 'maxRating.rating', 0) const theme = `customer-data level-${id}` const tooltipMargin = previewAvatar ? -(100 + (id * 20)) : 0 return ( @@ -16,7 +15,11 @@ const UserTooltip = ({ usr, id, previewAvatar }) => {
{ previewAvatar ? (
- +
) : {usr.firstName} {usr.lastName} } @@ -25,7 +28,10 @@ const UserTooltip = ({ usr, id, previewAvatar }) => {
- +
diff --git a/src/components/User/UserTooltip.scss b/src/components/User/UserTooltip.scss index 36ae2feed..58a7aaa40 100644 --- a/src/components/User/UserTooltip.scss +++ b/src/components/User/UserTooltip.scss @@ -36,17 +36,24 @@ } } + .tooltip-target { + .Avatar { + height: 30px; + width: 30px; + } + } + .stack-avatar-0 { z-index: 3; } .stack-avatar-1 { - margin-left: -10px; + margin-left: -5px; z-index: 2; } .stack-avatar-2 { - margin-left: -10px; + margin-left: -5px; z-index: 1; }