wiki size fix and allow replying/reacting to blog posts in the ssb app.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4703 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-12-29 20:13:35 +00:00
parent f4f560b164
commit f186806117
4 changed files with 19 additions and 2 deletions

View File

@ -484,6 +484,17 @@ class TfMessageElement extends LitElement {
`;
break;
}
let reply = (this.drafts[this.message?.id] !== undefined) ? html`
<tf-compose
whoami=${this.whoami}
.users=${this.users}
root=${this.message.content.root || this.message.id}
branch=${this.message.id}
.drafts=${this.drafts}
@tf-discard=${this.discard_reply}></tf-compose>
` : html`
<input type="button" value="Reply" @click=${this.show_reply}></input>
`;
return html`
<style>
code {
@ -509,7 +520,12 @@ class TfMessageElement extends LitElement {
<div>${body}</div>
${this.render_mentions()}
<div>
${reply}
<input type="button" value="React" @click=${this.react}></input>
</div>
${this.render_votes()}
${this.render_children()}
</div>
`;
} else if (content.type === 'pub') {