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