Skip to content

Commit

Permalink
fix: mobile adjustments for throughput chart (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Jul 15, 2024
1 parent 8360b6b commit 15ee119
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions src/tool-button/Throughput/Throughput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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},
},
Expand Down

0 comments on commit 15ee119

Please sign in to comment.