in src/app/components/queue-v2/queues-v2.component.ts [468:481]
function ellipsis(
selection: Selection<SVGTextElement, unknown, null, undefined>,
maxWidth: number
) {
const text = selection.text();
selection.text(text);
const textNode = selection.node();
let count = 1;
while (textNode && maxWidth < textNode.getBBox().width) {
selection.text(`${text.slice(0, text.length - count)}...`);
count++;
}
}