ssb: Add some missing padding.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 27m0s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 27m0s
This commit is contained in:
parent
5594bee618
commit
7f87714b58
@ -1,5 +1,5 @@
|
||||
{
|
||||
"type": "tildefriends-app",
|
||||
"emoji": "🦀",
|
||||
"previous": "&Fukja09hc/jieMnfbFnQft1drL5lIR/du8wUQTKDYXc=.sha256"
|
||||
"previous": "&jbL9Ab+XdvWnZbb50yimceFHR7XFDfBSWv9/XrbZ82I=.sha256"
|
||||
}
|
||||
|
@ -589,19 +589,18 @@ class TfMessageElement extends LitElement {
|
||||
let image;
|
||||
let description;
|
||||
if (content.name !== undefined) {
|
||||
name = html`<div class="w3-container">
|
||||
name = html`<div>
|
||||
<b>Name:</b> ${content.name}
|
||||
</div>`;
|
||||
}
|
||||
if (content.image !== undefined) {
|
||||
image = html`
|
||||
<div class="w3-container"><img src=${'/' + (typeof content.image?.link == 'string' ? content.image.link : content.image) + '/view'} style="width: 256px; height: auto"></img></div>
|
||||
<div><img src=${'/' + (typeof content.image?.link == 'string' ? content.image.link : content.image) + '/view'} style="width: 256px; height: auto"></img></div>
|
||||
`;
|
||||
}
|
||||
if (content.description !== undefined) {
|
||||
description = html`
|
||||
<div
|
||||
class="w3-container"
|
||||
style="flex: 1 0 50%; overflow-wrap: anywhere"
|
||||
>
|
||||
<div>${unsafeHTML(tfutils.markdown(content.description))}</div>
|
||||
@ -610,15 +609,17 @@ class TfMessageElement extends LitElement {
|
||||
}
|
||||
let update =
|
||||
content.about == this.message.author
|
||||
? html`<div class="w3-container" style="font-weight: bold">
|
||||
? html`<div style="font-weight: bold">
|
||||
Updated profile.
|
||||
</div>`
|
||||
: html`<div class="w3-container" style="font-weight: bold">
|
||||
: html`<div style="font-weight: bold">
|
||||
Updated profile for
|
||||
<tf-user id=${content.about} .users=${this.users}></tf-user>.
|
||||
</div>`;
|
||||
return this.render_small_frame(html`
|
||||
${update} ${name} ${image} ${description}
|
||||
<div class="w3-container">
|
||||
<p>${update} ${name} ${image} ${description}</p>
|
||||
</div>
|
||||
`);
|
||||
} else if (content.type == 'contact') {
|
||||
return html`
|
||||
@ -757,10 +758,12 @@ class TfMessageElement extends LitElement {
|
||||
} else if (content.type === 'channel') {
|
||||
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
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
`);
|
||||
} else if (typeof this.message.content == 'string') {
|
||||
|
Loading…
Reference in New Issue
Block a user