Improve hover cards with wrapper pattern and consistent behavior

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ian Gulliver
2026-01-26 14:45:31 -08:00
parent dbf449c447
commit 0baa208b99
2 changed files with 156 additions and 70 deletions

View File

@@ -866,9 +866,9 @@ func (t *Tendrils) probeDanteDeviceWithPort(ip net.IP, port int) {
if sub.TxChannelName != "" {
typeStr := sub.ChannelType.String()
if typeStr != "" {
channelInfo = fmt.Sprintf("%s->%02d:%s", sub.TxChannelName, sub.RxChannel, typeStr)
channelInfo = fmt.Sprintf("%s%02d [%s]", sub.TxChannelName, sub.RxChannel, typeStr)
} else {
channelInfo = fmt.Sprintf("%s->%02d", sub.TxChannelName, sub.RxChannel)
channelInfo = fmt.Sprintf("%s%02d", sub.TxChannelName, sub.RxChannel)
}
}
sourceNode := t.nodes.GetOrCreateByName(txDeviceName)