mirror of
https://github.com/status-im/status-web.git
synced 2025-01-19 17:09:48 +00:00
Add offline indicator (#66)
This commit is contained in:
parent
f7916f283f
commit
2a38552281
@ -105,7 +105,7 @@ export function Member({
|
||||
style={{
|
||||
backgroundImage: member.avatar ? `url(${member.avatar})` : "unset",
|
||||
}}
|
||||
className={isOnline ? "online" : ""}
|
||||
className={isOnline ? "online" : "offline"}
|
||||
>
|
||||
{!member.avatar && <UserIcon memberView={true} />}
|
||||
</MemberIcon>
|
||||
@ -182,12 +182,26 @@ const MemberIcon = styled(Icon)`
|
||||
background-position: center;
|
||||
flex-shrink: 0;
|
||||
|
||||
&.offline {
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: -1px;
|
||||
bottom: -2px;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background-color: ${({ theme }) => theme.secondary};
|
||||
border: 2px solid ${({ theme }) => theme.bodyBackgroundColor};
|
||||
}
|
||||
}
|
||||
|
||||
&.online {
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: -1px;
|
||||
bottom: 1px;
|
||||
bottom: -2px;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
|
Loading…
x
Reference in New Issue
Block a user