Redact client names, add elipses if it grows too long.

This commit is contained in:
Herbert Wolverson 2024-07-27 09:52:51 -05:00
parent ac700677ee
commit 1f8379d0e1

View File

@ -188,6 +188,8 @@ function renderAsn(asn, data) {
let clientLink = document.createElement("a");
clientLink.href = "/circuit/" + encodeURI(row.circuit_id);
clientLink.innerText = row.circuit_name;
clientLink.classList.add("redactable");
clientLink.style.textOverflow = "ellipsis";
clientCol.appendChild(clientLink);
} else {
clientCol.innerText = row.circuit_name;