Files
wekan/client/components/users/userAvatar.css
T
Lauri Ojansivu db90fb9e61 Members: distinguish imported placeholders and inactive members on the avatar + sidebar (Increment 5)
Make it obvious which board members are backed by a real account and which are not,
both on card avatars and in the right sidebar member list.

- userAvatar (js/jade/css): the avatar gets an 'imported-member' class (dashed grey ring
  + amber '?' corner badge) for un-reconciled board-import placeholders
  (authenticationMethod:'imported'), and an 'inactive-member' class (greyscale + dim +
  grey badge) for members deactivated on the board (e.g. a person not in LDAP after
  reconciliation). A placeholder is usually both; a real active account gets neither. The
  tooltip explains the state.
- boards.js membersForSidebar(): active members first (as before) then the inactive /
  imported ones appended, and sidebar.jade uses it, so the member list shows EVERYONE and
  which are active vs not instead of hiding inactive members.
- i18n: imported-member-no-account, inactive-member.

Thanks to xet7.
2026-07-13 09:16:32 +03:00

160 lines
3.4 KiB
CSS

.member {
border-radius: 3px;
display: block;
position: relative;
float: inline-start;
height: clamp(24px, 3.5vw, 36px);
width: clamp(24px, 3.5vw, 36px);
margin: .3vh;
cursor: pointer;
user-select: none;
z-index: 1;
text-decoration: none;
border-radius: 50%;
}
.member .avatar {
overflow: hidden;
border-radius: 50%;
}
.member .avatar.avatar-initials {
height: 70%;
width: 70%;
padding: 15%;
background-color: #dbdbdb;
color: #444;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
}
.member .avatar.avatar-image {
object-fit: cover;
object-position: center;
height: 100%;
width: 100%;
}
.member .member-presence-status {
background-color: #b3b3b3;
border: 1px solid #fff;
border-radius: 50%;
height: 7px;
width: 7px;
position: absolute;
inset-inline-end: -1px;
bottom: -1px;
border: 1px solid #fff;
z-index: 15;
}
.member .member-presence-status.active {
background: #64c464;
border-color: #daf1da;
}
.member .member-presence-status.idle {
background: #e4e467;
border-color: #f7f7d4;
}
.member .member-presence-status.disconnected {
background: #bdbdbd;
border-color: #ededed;
}
.member .member-presence-status.pending {
background: #e44242;
border-color: #f1dada;
}
.member .edit-avatar {
position: absolute;
top: 0;
height: 100%;
width: 100%;
border-radius: 50%;
background: #000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
}
.member .edit-avatar:hover {
opacity: 0.6;
}
.member .edit-avatar i.fa-pencil {
color: #fff;
}
.member.add-member {
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 0 2px #bfbfbf inset;
}
.member.add-member:hover,
.member.add-member.is-active {
box-shadow: 0 0 0 2px #666 inset;
}
.atMention {
background: #dbdbdb;
border-radius: 3px;
padding: 1px 4px;
margin: -1px 0;
display: inline-block;
}
.atMention.me {
background: #cfdfe8;
}
.mini-profile-info {
margin-top: 10px;
}
.mini-profile-info .info {
padding-top: 5px;
}
.mini-profile-info .info h3,
.mini-profile-info .info p {
margin-bottom: 0;
padding-inline-start: 0;
}
.mini-profile-info .info p {
padding-top: 0;
}
.mini-profile-info .member {
width: clamp(40px, 5vw, 60px);
height: clamp(40px, 5vw, 60px);
margin-inline-end: 10px;
}
/* Account-status distinction on the avatar itself (see userAvatar.js
memberAccountClass / isImportedMember / isInactiveMember):
- imported-member: an un-reconciled board-import placeholder that is not yet mapped
to a real account — dashed ring + amber "?" corner badge.
- inactive-member: deactivated on this board (e.g. a person not in LDAP after
reconciliation) — greyscale + dimmed, grey corner badge.
A placeholder is usually both; a real, active account gets neither. */
.member.imported-member .avatar {
border: 2px dashed #7f8c9a;
box-sizing: border-box;
opacity: 0.9;
}
.member.inactive-member .avatar {
filter: grayscale(1);
opacity: 0.55;
}
.member .member-account-badge {
position: absolute;
bottom: -2px;
right: -2px;
min-width: 14px;
height: 14px;
line-height: 13px;
padding: 0 1px;
border-radius: 7px;
font-size: 10px;
font-weight: bold;
text-align: center;
color: #fff;
box-shadow: 0 0 0 1.5px #fff;
pointer-events: none;
}
.member .member-account-badge.imported {
background: #f39c12;
}
.member .member-account-badge.inactive {
background: #95a5a6;
}