mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
add avatar & sender as first element in message so they don't occlude
This commit is contained in:
parent
d4373eb309
commit
57288f75b0
@ -49,8 +49,8 @@ export class BaseMessageView extends TemplateView {
|
|||||||
li.removeChild(li.querySelector(".Timeline_messageAvatar"));
|
li.removeChild(li.querySelector(".Timeline_messageAvatar"));
|
||||||
li.removeChild(li.querySelector(".Timeline_messageSender"));
|
li.removeChild(li.querySelector(".Timeline_messageSender"));
|
||||||
} else if (!isContinuation) {
|
} else if (!isContinuation) {
|
||||||
li.appendChild(renderStaticAvatar(vm, 30, "Timeline_messageAvatar"));
|
li.insertBefore(renderStaticAvatar(vm, 30, "Timeline_messageAvatar"), li.firstChild);
|
||||||
li.appendChild(tag.div({className: `Timeline_messageSender usercolor${vm.avatarColorNumber}`}, vm.displayName));
|
li.insertBefore(tag.div({className: `Timeline_messageSender usercolor${vm.avatarColorNumber}`}, vm.displayName), li.firstChild);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return li;
|
return li;
|
||||||
|
Loading…
Reference in New Issue
Block a user