feat: display full peer address in tooltip (#6081)

This commit is contained in:
Yat Ho 2023-10-07 10:33:05 +08:00 committed by GitHub
parent 2c97567370
commit cf1c4f99e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -603,7 +603,10 @@ export class Inspector extends EventTarget {
setTextContent(td, peer.flagStr);
td.setAttribute('title', Inspector._peerStatusTitle(peer.flagStr));
},
(peer, td) => setTextContent(td, peer.address),
(peer, td) => {
setTextContent(td, peer.address);
td.setAttribute('title', peer.address);
},
(peer, td) => setTextContent(td, peer.clientName),
];