From 24ec96a2dd1b99ddcec8f401c6479c0fa564d9d4 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 17 Jun 2024 17:37:07 +0200 Subject: [PATCH] Change interface label to fit in the SVG rect. Ref #1504 --- src/app/cartography/widgets/interface-status.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/cartography/widgets/interface-status.ts b/src/app/cartography/widgets/interface-status.ts index 0e6fc096..3f916838 100644 --- a/src/app/cartography/widgets/interface-status.ts +++ b/src/app/cartography/widgets/interface-status.ts @@ -90,7 +90,7 @@ export class InterfaceStatusWidget implements Widget { .merge(status_started_enter) .attr('class', 'status_started') .attr('width', (ls: LinkStatus) => { - return ls.port.length * 8 + 10; + return ls.port.length * 10 + 5; }) .attr('height', 20) .attr('x', (ls: LinkStatus) => ls.x - 30) @@ -122,7 +122,7 @@ export class InterfaceStatusWidget implements Widget { .merge(status_stopped_enter) .attr('class', 'status_stopped') .attr('width', (ls: LinkStatus) => { - return ls.port.length * 8 + 10; + return ls.port.length * 10 + 5; }) .attr('height', 20) .attr('x', (ls: LinkStatus) => ls.x - 30) @@ -154,7 +154,7 @@ export class InterfaceStatusWidget implements Widget { .merge(status_suspended_enter) .attr('class', 'status_suspended') .attr('width', (ls: LinkStatus) => { - return ls.port.length * 8 + 10; + return ls.port.length * 10 + 5; }) .attr('height', 20) .attr('x', (ls: LinkStatus) => ls.x - 30)