ssb: Try to consolidate the local users list. Man, CSS.

This commit is contained in:
Cory McWilliams 2025-01-11 12:48:44 -05:00
parent 17eba059f0
commit 2e4f792fc3
2 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&BHYyqkjBliajHR0fokZPpBjkB0Ds8kkwEIRHWit0kIk=.sha256" "previous": "&UOHm9X6pa1L0G0QdtiIqV/UW4vH/4rTA4i30IPqMzeQ=.sha256"
} }

View File

@ -267,24 +267,24 @@ class TfTabConnectionsElement extends LitElement {
)} )}
</ul> </ul>
<h2>Local Accounts</h2> <h2>Local Accounts</h2>
<ul class="w3-ul w3-border"> <div class="w3-container">
${this.identities.map( ${this.identities.map(
(x) => (x) =>
html`<li class="w3-bar"> html`<div class="w3-tag w3-round w3-theme-l3" style="padding: 4px; margin: 2px; max-width: 100%; text-wrap: nowrap; overflow: hidden">
${x == this.server_identity ${x == this.server_identity
? html`<span class="w3-tag w3-medium w3-round w3-theme-l1" ? html`<div class="w3-tag w3-medium w3-round w3-theme-l1"
>🖥 local server</span >🖥 local server</div
>` >`
: undefined} : undefined}
${this.my_identities.indexOf(x) != -1 ${this.my_identities.indexOf(x) != -1
? html`<span class="w3-tag w3-medium w3-round w3-theme-d1" ? html`<div class="w3-tag w3-medium w3-round w3-theme-d1"
>😎 you</span >😎 you</div
>` >`
: undefined} : undefined}
<tf-user id=${x} .users=${this.users}></tf-user> <tf-user id=${x} .users=${this.users}></tf-user>
</li>` </div>`
)} )}
</ul> </div>
</div> </div>
`; `;
} }