ssb: Hint at follow depth with profile image shape. Also, reload follow information the same way we re-determine channel unread status. Let's see if this feels good.
This commit is contained in:
@ -589,9 +589,7 @@ class TfMessageElement extends LitElement {
|
||||
let image;
|
||||
let description;
|
||||
if (content.name !== undefined) {
|
||||
name = html`<div>
|
||||
<b>Name:</b> ${content.name}
|
||||
</div>`;
|
||||
name = html`<div><b>Name:</b> ${content.name}</div>`;
|
||||
}
|
||||
if (content.image !== undefined) {
|
||||
image = html`
|
||||
@ -600,18 +598,14 @@ class TfMessageElement extends LitElement {
|
||||
}
|
||||
if (content.description !== undefined) {
|
||||
description = html`
|
||||
<div
|
||||
style="flex: 1 0 50%; overflow-wrap: anywhere"
|
||||
>
|
||||
<div style="flex: 1 0 50%; overflow-wrap: anywhere">
|
||||
<div>${unsafeHTML(tfutils.markdown(content.description))}</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
let update =
|
||||
content.about == this.message.author
|
||||
? html`<div style="font-weight: bold">
|
||||
Updated profile.
|
||||
</div>`
|
||||
? html`<div style="font-weight: bold">Updated profile.</div>`
|
||||
: html`<div style="font-weight: bold">
|
||||
Updated profile for
|
||||
<tf-user id=${content.about} .users=${this.users}></tf-user>.
|
||||
@ -759,10 +753,10 @@ class TfMessageElement extends LitElement {
|
||||
return this.render_small_frame(html`
|
||||
<div class="w3-container">
|
||||
<p>
|
||||
${content.subscribed ? 'subscribed to' : 'unsubscribed from'}
|
||||
<a href=${'#' + encodeURIComponent('#' + content.channel)}
|
||||
>#${content.channel}</a
|
||||
>
|
||||
${content.subscribed ? 'subscribed to' : 'unsubscribed from'}
|
||||
<a href=${'#' + encodeURIComponent('#' + content.channel)}
|
||||
>#${content.channel}</a
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
`);
|
||||
|
Reference in New Issue
Block a user