diff --git a/apps/ssb.json b/apps/ssb.json index 04a69c85..ab17958f 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&Eg9WyDY1CmakDJYw0+fk0PDW1EOW3gS/Np10dAJZM7c=.sha256" + "previous": "&fAgPjWyRwHxcKiSV3T8OE7UyAUUgHE02YnA7e+sm3lo=.sha256" } diff --git a/apps/ssb/tf-user.js b/apps/ssb/tf-user.js index b2afbfd4..d0b4b3fb 100644 --- a/apps/ssb/tf-user.js +++ b/apps/ssb/tf-user.js @@ -34,11 +34,10 @@ class TfUserElement extends LitElement { >😎`; let name = this.users?.[this.id]?.name; + let name_string = name ?? this.fallback_name ?? this.id; name = this.icon_only ? undefined - : html`${name ?? this.fallback_name ?? this.id}`; + : html`${name_string}`; if (user) { let image_link = user.image; @@ -52,7 +51,7 @@ class TfUserElement extends LitElement { class=${'w3-theme-l4 ' + shape} style="width: 2em; height: 2em; vertical-align: middle; object-fit: cover" src="/${image_link}/view" - alt=${name ?? this.fallback_name ?? this.id} + title=${name_string + ' (' + this.id + ')'} />`; } } diff --git a/apps/ssb/tf-utils.js b/apps/ssb/tf-utils.js index 63eda668..74a55a12 100644 --- a/apps/ssb/tf-utils.js +++ b/apps/ssb/tf-utils.js @@ -50,9 +50,9 @@ function image(node, entering) { '' ); if (this.options.safe && potentiallyUnsafe(node.destination)) { - this.lit('