From 67fc07d3261bc5108a4f5b778bf9f08390bc4c9f Mon Sep 17 00:00:00 2001 From: Anton Roslund Date: Sun, 16 Mar 2025 11:27:48 +0100 Subject: [PATCH] Fix terrain tooltip --- src/public/index.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/public/index.html b/src/public/index.html index d4600d5..8c434fc 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -3116,8 +3116,8 @@ const tooltip = `[${escapeString(node.short_name)}] ${escapeString(node.long_name)} heard [${escapeString(neighbourNode.short_name)}] ${escapeString(neighbourNode.long_name)}` + `
SNR: ${neighbour.snr}dB` - + `
Distance: ${distance}` - + `
` (node.neighbours_updated_at ? `
Updated: ${moment(new Date(node.neighbours_updated_at)).fromNow()}` : '') + + `
Distance: ${distance}
` + + (node.neighbours_updated_at ? `
Updated: ${moment(new Date(node.neighbours_updated_at)).fromNow()}` : '') + `

Terrain images from HeyWhatsThat.com` + `
`; @@ -3235,9 +3235,7 @@ const tooltip = `[${escapeString(neighbourNode.short_name)}] ${escapeString(neighbourNode.long_name)} heard [${escapeString(node.short_name)}] ${escapeString(node.long_name)}` + `
SNR: ${neighbour.snr}dB` - + `
Distance: ${distance}` - + `

ID: ${neighbourNode.node_id} heard ${node.node_id}` - + `
Hex ID: ${neighbourNode.node_id_hex} heard ${node.node_id_hex}` + + `
Distance: ${distance}
` + (neighbourNode.neighbours_updated_at ? `
Updated: ${moment(new Date(neighbourNode.neighbours_updated_at)).fromNow()}` : '') + `

Terrain images from HeyWhatsThat.com` + `
`; @@ -3480,9 +3478,7 @@ const tooltip = `[${escapeString(node.short_name)}] ${escapeString(node.long_name)} heard [${escapeString(neighbourNode.short_name)}] ${escapeString(neighbourNode.long_name)}` + `
SNR: ${neighbour.snr}dB` - + `
Distance: ${distance}` - + `

ID: ${node.node_id} heard ${neighbourNode.node_id}` - + `
Hex ID: ${node.node_id_hex} heard ${neighbourNode.node_id_hex}` + + `
Distance: ${distance}
` + (node.neighbours_updated_at ? `
Updated: ${moment(new Date(node.neighbours_updated_at)).fromNow()}` : '') + `

Terrain images from HeyWhatsThat.com` + `
`;