Network tree summary is scaled appropriately.

This commit is contained in:
Herbert Wolverson
2024-07-17 09:17:52 -05:00
parent bbab9489e5
commit 3290f29282
2 changed files with 4 additions and 2 deletions

View File

@@ -26,9 +26,10 @@ export class TopTreeSummary extends BaseDashlet {
let t = document.createElement("table"); let t = document.createElement("table");
t.id = this.id + "_table"; t.id = this.id + "_table";
t.classList.add("table", "table-sm", "mytable"); t.classList.add("table", "table-sm", "mytable", "small");
let th = document.createElement("thead"); let th = document.createElement("thead");
th.classList.add('small');
th.appendChild(theading("Branch")); th.appendChild(theading("Branch"));
th.appendChild(theading("DL ⬇️")); th.appendChild(theading("DL ⬇️"));
th.appendChild(theading("UL ⬆️")); th.appendChild(theading("UL ⬆️"));
@@ -54,6 +55,7 @@ export class TopTreeSummary extends BaseDashlet {
msg.data.forEach((r) => { msg.data.forEach((r) => {
let row = document.createElement("tr"); let row = document.createElement("tr");
row.classList.add("small");
let name = document.createElement("td"); let name = document.createElement("td");
name.innerText = r[1].name; name.innerText = r[1].name;
name.classList.add("tiny"); name.classList.add("tiny");

View File

@@ -10,7 +10,7 @@ pub async fn tree_summary(channels: Arc<PubSub>) {
return; return;
} }
if let BusResponse::NetworkMap(nodes) = shaped_devices_tracker::get_top_n_root_queues(7) { if let BusResponse::NetworkMap(nodes) = shaped_devices_tracker::get_top_n_root_queues(10) {
let message = json!( let message = json!(
{ {