ssb: Distant/unknown users get a circle avatar, too.
This commit is contained in:
parent
053637cfb4
commit
003e0caada
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🦀",
|
"emoji": "🦀",
|
||||||
"previous": "&19R5jeKIx2u51L6xPL3gV7EXOhHksKNCuTHt+SBEZjg=.sha256"
|
"previous": "&xWW9fuitFr6jFhe4fopPq2Zuu08ZBzHoKjFAAPx2a/U=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ class TfUserElement extends LitElement {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
let user = this.users[this.id];
|
let user = this.users[this.id];
|
||||||
let shape = user && user.follow_depth >= 2 ? 'w3-circle' : 'w3-round';
|
let shape = !user || user.follow_depth >= 2 ? 'w3-circle' : 'w3-round';
|
||||||
let image = html`<span
|
let image = html`<span
|
||||||
class=${'w3-theme-l4 ' + shape}
|
class=${'w3-theme-l4 ' + shape}
|
||||||
style="display: inline-block; width: 2em; height: 2em; text-align: center; line-height: 2em"
|
style="display: inline-block; width: 2em; height: 2em; text-align: center; line-height: 2em"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user