diff --git a/internal/streams/dot.go b/internal/streams/dot.go index 96aa4115..c54a733a 100644 --- a/internal/streams/dot.go +++ b/internal/streams/dot.go @@ -156,19 +156,20 @@ func (c *conn) host() (s string) { return } -func (c *conn) label() (s string) { - s = "format_name=" + c.FormatName +func (c *conn) label() string { + var sb strings.Builder + sb.WriteString("format_name=" + c.FormatName) if c.Protocol != "" { - s += "\nprotocol=" + c.Protocol + sb.WriteString("\nprotocol=" + c.Protocol) } if c.Source != "" { - s += "\nsource=" + c.Source + sb.WriteString("\nsource=" + c.Source) } if c.URL != "" { - s += "\nurl=" + c.URL + sb.WriteString("\nurl=" + c.URL) } if c.UserAgent != "" { - s += "\nuser_agent=" + c.UserAgent + sb.WriteString("\nuser_agent=" + c.UserAgent) } - return + return sb.String() } diff --git a/www/network.html b/www/network.html index 5193b6a9..7a4ff229 100644 --- a/www/network.html +++ b/www/network.html @@ -18,17 +18,21 @@ height: 100%; width: 100%; } + + #network { + flex-grow: 1; + } -
+ - \ No newline at end of file +