Skip to content

Commit

Permalink
Change interface label to fit in the SVG rect. Ref #1504
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Jun 17, 2024
1 parent 9844a2f commit 24ec96a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/cartography/widgets/interface-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 24ec96a

Please sign in to comment.