From df0792657e78dc7a6ac7ce59f01f4ea230287df5 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 1 Aug 2025 20:59:55 +0200 Subject: [PATCH] Improve tooltips --- src/map/map.js | 2 +- src/map/style.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/map/map.js b/src/map/map.js index 818ebed..ebd8774 100644 --- a/src/map/map.js +++ b/src/map/map.js @@ -166,7 +166,7 @@ for (let nodeId of Object.keys(nodes)) { } for (let connection of connections) { - let label = `${connection.from} - ${connection.to}
${connection.latency}`; + let label = `${connection.from} - ${connection.to}
${connection.latency}ms`; L.polyline( [ nodes[connection.from].location, nodes[connection.to].location ], diff --git a/src/map/style.css b/src/map/style.css index 76d4811..6c800da 100644 --- a/src/map/style.css +++ b/src/map/style.css @@ -102,6 +102,10 @@ html, body { backdrop-filter: blur(5px); } +.leaflet-popup-content { + text-align: center; +} + .leaflet-control-zoom { backdrop-filter: blur(5px); }