fix: Show icon instead of a different color for group

This commit is contained in:
Suraj Shetty 2021-04-30 12:43:55 +05:30
parent 43a4f1861e
commit 9bb0ea0301
2 changed files with 5 additions and 1 deletions

View file

@ -12,6 +12,7 @@ class MentionBlot extends Embed {
denotationChar.innerHTML = data.denotationChar;
node.appendChild(denotationChar);
node.innerHTML += data.value;
node.innerHTML += `${data.isGroup === 'true' ? frappe.utils.icon('users') : ''}`;
node.dataset.id = data.id;
node.dataset.value = data.value;
node.dataset.denotationChar = data.denotationChar;

View file

@ -197,5 +197,8 @@
}
.mention[data-is-group="true"] {
background-color: var(--group-mention-bg-color);
.icon {
margin-top: -2px;
margin-left: 4px;
}
}