mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-22 08:16:25 -06:00
String scaling
This commit is contained in:
parent
1fe97c7195
commit
f28bc780de
@ -72,6 +72,9 @@ export class Top10FlowsBytes extends BaseDashlet {
|
|||||||
|
|
||||||
let proto = document.createElement("td");
|
let proto = document.createElement("td");
|
||||||
proto.innerText = r.analysis;
|
proto.innerText = r.analysis;
|
||||||
|
if (r.analysis.length > 6) {
|
||||||
|
proto.classList.add("tiny");
|
||||||
|
}
|
||||||
row.appendChild(proto);
|
row.appendChild(proto);
|
||||||
|
|
||||||
let dl = document.createElement("td");
|
let dl = document.createElement("td");
|
||||||
@ -114,7 +117,10 @@ export class Top10FlowsBytes extends BaseDashlet {
|
|||||||
asn.innerText = r.remote_asn_name;
|
asn.innerText = r.remote_asn_name;
|
||||||
if (asn.innerText === "") {
|
if (asn.innerText === "") {
|
||||||
asn.innerText = r.remote_ip;
|
asn.innerText = r.remote_ip;
|
||||||
}
|
}
|
||||||
|
if (asn.innerText.length > 13) {
|
||||||
|
asn.classList.add("tiny");
|
||||||
|
}
|
||||||
row.appendChild(asn);
|
row.appendChild(asn);
|
||||||
|
|
||||||
t.appendChild(row);
|
t.appendChild(row);
|
||||||
|
Loading…
Reference in New Issue
Block a user