From ef5ce1d6e1fbc0f33aba74f14cc5814092f992a4 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 20 Nov 2024 20:06:33 -0500 Subject: [PATCH] web: Show the little graphs if the Tilde Friends verison thingy is expanded. I want to be able to optionally see these on mobile. --- core/client.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/core/client.js b/core/client.js index 4ada2236..0880246f 100644 --- a/core/client.js +++ b/core/client.js @@ -56,7 +56,7 @@ class TfNavigationElement extends LitElement { status: {type: Object}, spark_lines: {type: Object}, version: {type: Object}, - show_version: {type: Boolean}, + show_expanded: {type: Boolean}, identity: {type: String}, identities: {type: Array}, names: {type: Object}, @@ -105,7 +105,6 @@ class TfNavigationElement extends LitElement { let spark_line = document.createElement('tf-sparkline'); spark_line.title = key; spark_line.classList.add('w3-bar-item'); - spark_line.classList.add('w3-hide-small'); spark_line.style.paddingRight = '0'; if (options) { if (options.max) { @@ -315,13 +314,13 @@ class TfNavigationElement extends LitElement { (this.show_version = !this.show_version)} + @click=${() => (this.show_expanded = !this.show_expanded)} >😎 ` : undefined} - ${Object.keys(this.spark_lines) - .sort() - .map((x) => this.spark_lines[x])} + + ${Object.keys(this.spark_lines) + .sort() + .map((x) => this.spark_lines[x])} + ${this.render_identity()} ${this.status?.is_error