From 28d08e013fc401c6a2ff43a21a150f6564ad9235 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 13 Apr 2024 19:29:31 -0400 Subject: [PATCH] Trying to make the ssb connections tab not overflow all the layouts. Dunno. --- apps/ssb.json | 2 +- apps/ssb/tf-tab-connections.js | 44 +++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index 39573215..2a2cd7ca 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&hKBq89Q1oOiSK8ZtiA67MciAaMNCRK5CuYtOeoX94qU=.sha256" + "previous": "&kHFHpwFhnRVEbFQxuKlOUXPs/eJ2cOvWgS8poXm8WNM=.sha256" } diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index 45721c07..f55c7260 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -33,9 +33,9 @@ class TfTabConnectionsElement extends LitElement { render_connection_summary(connection) { if (connection.address && connection.port) { - return html`(${connection.address}:${connection.port})`; + return html`
${connection.address}:${connection.port}
`; } else if (connection.tunnel) { - return html`(room peer)`; + return html`
room peer
`; } else { return JSON.stringify(connection); } @@ -73,15 +73,17 @@ class TfTabConnectionsElement extends LitElement { render_broadcast(connection) { return html` -
  • +
  • - - ${this.render_connection_summary(connection)} +
    + + ${this.render_connection_summary(connection)} +
  • `; } @@ -115,7 +117,7 @@ class TfTabConnectionsElement extends LitElement { render() { let self = this; return html` -
    +

    New Connection

    - ${x.address}:${x.port} - +
    + +
    ${x.address}:${x.port}
    +
    ` )}

    Local Accounts

    -
      +
        ${this.identities.map( (x) => - html`
      • ` + html`
      • + +
      • ` )}