fix: Use colored border instead of fill for emoji avatars

Emoji avatars are now displayed with a colored ring/outline
instead of filled background for better readability.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-01-20 07:56:12 +01:00
parent 2de09811ce
commit 07de51e56a
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -80,6 +80,8 @@ main {
.message-avatar.emoji {
font-size: 1.25rem;
background-color: transparent !important;
border: 2.5px solid;
}
/* Message container - holds sender row + bubble + actions */
+5 -1
View File
@@ -687,8 +687,12 @@ function createMessageElement(msg) {
// Other messages: left-aligned with avatar
const avatar = generateAvatar(msg.sender);
const avatarStyle = avatar.isEmoji
? `border-color: ${avatar.color};`
: `background-color: ${avatar.color};`;
wrapper.innerHTML = `
<div class="message-avatar${avatar.isEmoji ? ' emoji' : ''}" style="background-color: ${avatar.color};">
<div class="message-avatar${avatar.isEmoji ? ' emoji' : ''}" style="${avatarStyle}">
${avatar.content}
</div>
<div class="message-container">