Skip to content

Commit

Permalink
Merge pull request #173 from juztas/smalfixes
Browse files Browse the repository at this point in the history
Small spacing and diagram length fixes
  • Loading branch information
juztas authored Feb 21, 2025
2 parents 2234432 + f9c4c2e commit afa4cc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autogole-api/src/python/RTMonLibs/DiagramWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def d_addSwitch(self, item):
}
return None
switchLabel = item['Node'].split(":")[1]
switchLabel += ("\nIPv4" + item["IPv4"]) if item["IPv4"] != '?port_ipv4?' else ""
switchLabel += ("\nIPv6" + item["IPv6"]) if item["IPv6"] != '?port_ipv6?' else ""
switchLabel += ("\nIPv4: " + item["IPv4"]) if item["IPv4"] != '?port_ipv4?' else ""
switchLabel += ("\nIPv6: " + item["IPv6"]) if item["IPv6"] != '?port_ipv6?' else ""

switch1 = Custom(switchLabel, self.SWITCH_ICON_PATH)
if 'Peer' in item and item['Peer'] != "?peer?":
Expand Down
2 changes: 1 addition & 1 deletion autogole-api/src/python/RTMonLibs/Template.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def t_addImagePanel(self, image_url, title="Image Panel"):
"options": {
"content": f"<div style='text-align:center;'><img src='{image_url}' style='max-width:100%; height:auto;'></div>",
},
"gridPos": {"x": 0, "y": 0, "w": 24, "h": 30},
"gridPos": {"x": 0, "y": 0, "w": 24, "h": 20},
"id": self._getNextID()
}
return panel
Expand Down

0 comments on commit afa4cc3

Please sign in to comment.