ssb: Placeholder messages needed padding.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled

This commit is contained in:
Cory McWilliams 2025-01-14 21:18:49 -05:00
parent f7602b39a1
commit 56c77c781a
2 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🦀",
"previous": "&2ZH/mtbvbK35gpBMgZ5CjklFEbjWAcpr1fbVvCQma9E=.sha256"
"previous": "&8oo0Movqf+EjqVRtP/TK9SJLoLFbXbnTH0F95sdI9q4=.sha256"
}

View File

@ -566,10 +566,13 @@ class TfMessageElement extends LitElement {
);
} else if (this.message.placeholder) {
return this.render_frame(
html` <a target="_top" href=${'#' + encodeURIComponent(this.message.id)}
>${this.message.id}</a
>
(placeholder)
html`<div class="w3-padding">
<p>
<a target="_top" href=${'#' + encodeURIComponent(this.message.id)}
>${this.message.id}</a
>
(placeholder)
</p>
<div>${this.render_votes()}</div>
${(this.message.child_messages || []).map(
(x) => html`
@ -583,7 +586,8 @@ class TfMessageElement extends LitElement {
channel_unread=${this.channel_unread}
></tf-message>
`
)}`
)}
</div>`
);
} else if (typeof content?.type === 'string') {
if (content.type == 'about') {