Added avatars before identity nicknames in the chat-room join selection.

This commit is contained in:
defnax 2026-08-16 13:50:58 +02:00
parent 57ccc4cade
commit d659977275
3 changed files with 25 additions and 2 deletions

View File

@ -1126,7 +1126,14 @@ const ChatRoomJoinView = () => {
'.identity-card',
{ onclick: () => ChatLobbyModel.enterPublicLobby(lobbyHexId, nick) },
[
m('.identity-name', rs.userList.username(nick) || nick),
m('.identity-card__identity', [
m(peopleUtil.IdentityAvatar, {
identityId: nick,
name: rs.userList.username(nick) || nick,
size: 36,
}),
m('.identity-name', rs.userList.username(nick) || nick),
]),
m('i.fas.fa-sign-in-alt'),
]
)

View File

@ -814,10 +814,26 @@ textarea.chatMsg {
border-color: #3ba4d7;
}
&__identity {
display: flex;
align-items: center;
min-width: 0;
gap: 0.65rem;
> .avatar,
> .jdenticon-avatar,
> .defaultAvatar {
margin-right: 0 !important;
}
}
.identity-name {
overflow: hidden;
font-size: 0.95rem;
font-weight: 600;
color: #334155;
text-overflow: ellipsis;
white-space: nowrap;
}
i {

File diff suppressed because one or more lines are too long