mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/wireguard: widget, fix/improve colum public key overlapping latest handshake (#3349)
fixes public key overlapping latest handshake, moving the ellipsis to css to allow full display and fix current overlap
This commit is contained in:
@@ -60,14 +60,12 @@ $enabled = ($config["OPNsense"]["wireguard"]["general"]["enabled"] === "1" ? tru
|
||||
$(window).on("load", function() {
|
||||
function wgGenerateRow(name, interface, peerName, publicKey, latestHandshake, status)
|
||||
{
|
||||
publicKeyShort = publicKey.slice(0, 19) + '...';
|
||||
|
||||
var tr = ''
|
||||
+'<tr>'
|
||||
+' <td>' + name + '</td>'
|
||||
+' <td>' + interface + '</td>'
|
||||
+' <td>' + peerName + '</td>'
|
||||
+' <td title="' + publicKey + '">' + publicKeyShort + '</td>'
|
||||
+' <td style="overflow: hidden; text-overflow: ellipsis;" title="' + publicKey + '">' + publicKey + '</td>'
|
||||
+' <td>' + latestHandshake + '</td>'
|
||||
+'</tr>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user