From 15ee1191d266ab6b3e29fdc34592165670803d9a Mon Sep 17 00:00:00 2001 From: Curt Tudor Date: Mon, 15 Jul 2024 08:27:31 -0600 Subject: [PATCH] fix: mobile adjustments for throughput chart (#322) --- src/runtime.js | 4 +++- src/tool-button/Throughput/Throughput.js | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/runtime.js b/src/runtime.js index 575c794..d8de09b 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -1178,7 +1178,9 @@ class ZitiBrowzerRuntime { transparency: 1.0 } }); - eruda.maybeShowThroughput(); + if (!options.loadedViaBootstrapper) { + eruda.maybeShowThroughput(); + } let logLevel = await window.zitiBrowzerRuntime.localStorage.get( 'ZITI_BROWZER_RUNTIME_LOGLEVEL', diff --git a/src/tool-button/Throughput/Throughput.js b/src/tool-button/Throughput/Throughput.js index 615a0f2..a5f0d47 100644 --- a/src/tool-button/Throughput/Throughput.js +++ b/src/tool-button/Throughput/Throughput.js @@ -139,7 +139,7 @@ export default class Throughput extends Tool { cursor: { y: false, }, - width: 800, + width: window.innerWidth - 30, height: 250, title: `Bytes exchanged with Ziti Service [${zitiBrowzerRuntime.zitiConfig.browzer.bootstrapper.target.service}]`, scales: { @@ -153,14 +153,14 @@ export default class Throughput extends Tool { { label: "Send", stroke: "blue", - width: 2, + width: 4, paths: _bars60_100, points: {show: true}, }, { label: "Recv", stroke: "green", - width: 2, + width: 4, paths: _bars60_100, points: {show: true}, },