diff --git a/core/client.js b/core/client.js
index a215bac1..e68de5c6 100644
--- a/core/client.js
+++ b/core/client.js
@@ -80,7 +80,7 @@ class TfNavigationElement extends LitElement {
let spark_line = document.createElement('tf-sparkline');
spark_line.style.display = 'flex';
spark_line.style.flexDirection = 'row';
- spark_line.style.flex = '0 100 10em';
+ spark_line.style.flex = '0 50 5em';
spark_line.title = key;
if (options) {
if (options.max) {
@@ -126,7 +126,7 @@ class TfNavigationElement extends LitElement {
-
+
this.show_version = !this.show_version}>😎
['name', 'number'].indexOf(x[0]) == -1).map(x => `\n* ${x[0]}: ${x[1]}`)}>${this.version?.number}
TF
@@ -136,7 +136,7 @@ class TfNavigationElement extends LitElement {
${this.status.message}
${this.render_permissions()}
-
${Object.keys(this.spark_lines).sort().map(x => this.spark_lines[x]).map(x => [x.dataset.emoji, x])}
+
${Object.keys(this.spark_lines).sort().map(x => this.spark_lines[x]).map(x => [html`${x.dataset.emoji}`, x])}
${this.render_login()}
`;
@@ -310,7 +310,7 @@ class TfSparkLineElement extends LitElement {
render_line(line) {
if (line?.values?.length >= 2) {
let max = Math.max(this.max, ...line.values);
- let points = [].concat(...line.values.map((x, i) => [100.0 * i / (line.values.length - 1), 10.0 - 10.0 * (x - this.min) / (max - this.min)]));
+ let points = [].concat(...line.values.map((x, i) => [50.0 * i / (line.values.length - 1), 10.0 - 10.0 * (x - this.min) / (max - this.min)]));
return svg`
`;
}
}
@@ -318,7 +318,7 @@ class TfSparkLineElement extends LitElement {
render() {
let max = Math.round(10.0 * Math.max(...this.lines.map(line => line.values[line.values.length - 1]))) / 10.0;
return html`
-