Tooltip für GMA kleiner machen mit Tailwind

This commit is contained in:
ISA
2024-04-26 09:49:24 +02:00
parent 5e36a8db94
commit 8d9e8c6385

View File

@@ -1009,20 +1009,20 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
// Tooltip beim Überfahren mit der Maus anzeigen
marker.bindTooltip(
`
<div class="p-2 rounded-xl bg-opacity-70">
<div class="font-bold text-sm text-gray-700">
<div class="p-0 rounded-xl bg-opacity-90">
<div class="font-bold text-sm text-black">
<span>${area_name}</span>
</div>
<div class="font-bold text-sm text-gray-700 mt-1">
<div class="font-bold text-xxs text-gray-700 ">
<span>LT : ${measurements.LT} °C</span>
</div>
<div class="font-bold text-sm text-gray-700 mt-1">
<div class="font-bold text-xxs text-gray-700 ">
<span>FBT : ${measurements.FBT} °C</span>
</div>
<div class="font-bold text-sm text-gray-700 mt-1">
<div class="font-bold text-xxs text-gray-700">
<span>GT : ${measurements.GT === "nicht ermittelbar" ? measurements.GT : `${measurements.GT} °C`}</span>
</div>
<div class="font-bold text-sm text-gray-700 mt-1">
<div class="font-bold text-xxs text-gray-700 ">
<span>RLF : ${measurements.RLF} %</span>
</div>
</div>
@@ -1030,6 +1030,7 @@ const MapComponent = ({ locations, onLocationUpdate }) => {
{
permanent: true, // true würde den Tooltip immer anzeigen
direction: "auto", // oder 'top', 'bottom', 'left', 'right'
offset: [20, 0],
}
);