From 8d9e8c63858ea8e3c50f046e54a9d89fedff4097 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 26 Apr 2024 09:49:24 +0200 Subject: [PATCH] =?UTF-8?q?Tooltip=20f=C3=BCr=20GMA=20kleiner=20machen=20m?= =?UTF-8?q?it=20Tailwind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/MapComponent.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/components/MapComponent.js b/components/MapComponent.js index 1145050b7..b86095a50 100644 --- a/components/MapComponent.js +++ b/components/MapComponent.js @@ -1009,27 +1009,28 @@ const MapComponent = ({ locations, onLocationUpdate }) => { // Tooltip beim Überfahren mit der Maus anzeigen marker.bindTooltip( ` -
-
+
+
${area_name}
-
- LT : ${measurements.LT} °C -
-
- FBT : ${measurements.FBT} °C -
-
- GT : ${measurements.GT === "nicht ermittelbar" ? measurements.GT : `${measurements.GT} °C`} -
-
- RLF : ${measurements.RLF} % -
+
+ LT : ${measurements.LT} °C
+
+ FBT : ${measurements.FBT} °C +
+
+ GT : ${measurements.GT === "nicht ermittelbar" ? measurements.GT : `${measurements.GT} °C`} +
+
+ RLF : ${measurements.RLF} % +
+
`, { permanent: true, // true würde den Tooltip immer anzeigen direction: "auto", // oder 'top', 'bottom', 'left', 'right' + offset: [20, 0], } );