Fix some weird spacing.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4782 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2024-01-19 02:12:17 +00:00
parent 64249976a8
commit cf311003c0
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🐌", "emoji": "🐌",
"previous": "&6j+dB7MfKW+rrUTaoBMTVVEWCiIB/F84IWWvlVfsxH0=.sha256" "previous": "&CRKRVQceT5DR5YXXdyLsCs9UjvNWKJ3B76D2SB5Gwy8=.sha256"
} }

View File

@ -213,9 +213,9 @@ class TfMessageElement extends LitElement {
let self = this; let self = this;
if (this.message.child_messages?.length) { if (this.message.child_messages?.length) {
if (!this.expanded[this.message.id]) { if (!this.expanded[this.message.id]) {
return html`<p><button class="w3-button w3-dark-grey" @click=${() => self.set_expanded(true)}>+ ${this.total_child_messages(this.message) + ' More'}</button></p>`; return html`<button class="w3-button w3-dark-grey" @click=${() => self.set_expanded(true)}>+ ${this.total_child_messages(this.message) + ' More'}</button>`;
} else { } else {
return html`<p><button class="w3-button w3-dark-grey" @click=${() => self.set_expanded(false)}>Collapse</button></p>${(this.message.child_messages || []).map(x => html`<tf-message .message=${x} whoami=${this.whoami} .users=${this.users} .drafts=${this.drafts} .expanded=${this.expanded}></tf-message>`)}`; return html`<button class="w3-button w3-dark-grey" @click=${() => self.set_expanded(false)}>Collapse</button>${(this.message.child_messages || []).map(x => html`<tf-message .message=${x} whoami=${this.whoami} .users=${this.users} .drafts=${this.drafts} .expanded=${this.expanded}></tf-message>`)}`;
} }
} }
} }
@ -411,10 +411,10 @@ class TfMessageElement extends LitElement {
</div> </div>
${payload} ${payload}
${this.render_votes()} ${this.render_votes()}
<div> <p>
${reply} ${reply}
<button class="w3-button w3-dark-grey" @click=${this.react}>React</button> <button class="w3-button w3-dark-grey" @click=${this.react}>React</button>
</div> </p>
${this.render_children()} ${this.render_children()}
</div> </div>
`; `;
@ -446,9 +446,9 @@ class TfMessageElement extends LitElement {
</div> </div>
${content.text} ${content.text}
${this.render_votes()} ${this.render_votes()}
<div> <p>
<button class="w3-button w3-dark-grey" @click=${this.react}>React</button> <button class="w3-button w3-dark-grey" @click=${this.react}>React</button>
</div> </p>
${this.render_children()} ${this.render_children()}
</div> </div>
`; `;