edit: Lines tooltip style

This commit is contained in:
ISA
2024-06-26 09:33:32 +02:00
parent 644b5329dd
commit e74fcd8ad3

View File

@@ -2179,16 +2179,26 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
if (matchingLine) {
colorsByModule[matchingLine.idModul] = stat.PrioColor;
newTooltipContents[matchingLine.idModul] = `
<div class=" bg-white rounded-lg">
<div class="bg-white rounded-lg m-0 p-2 ">
<span class="text-lg font-semibold text-gray-900">${stat.DpName || "Unknown"}</span><br>
<span class="text-md font-bold text-gray-800">ModulName : ${stat.ModulName || "N/A"}</span><br>
<span class="text-gray-800">Message : ${stat.Message || "N/A"}</span><br>
<span class="text-md font-bold text-gray-800">
<span class="font-bold">ModulName :</span> ${stat.ModulName || "N/A"}
</span><br>
<span class="text-gray-800">
<span class="font-bold">Message :</span> ${stat.Message || "N/A"}
</span><br>
<!--<span class="text-gray-800">PrioColor : ${stat.PrioColor || "N/A"}</span><br>-->
<span class="text-gray-800">PrioName : ${stat.PrioName || "N/A"}</span><br>
<span class="text-gray-800">IdLD : ${stat.IdLD || "N/A"}</span><br>
<span class="text-gray-800">Modul : ${stat.Modul || "N/A"}</span><br>
<span class="text-gray-800">
<span class="font-bold">PrioName :</span> ${stat.PrioName || "N/A"}
</span><br>
<span class="text-gray-800">
<span class="font-bold">IdLD :</span> ${stat.IdLD || "N/A"}
</span><br>
<span class="text-gray-800">
<span class="font-bold">Modul :</span> ${stat.Modul || "N/A"}
</span><br>
</div>
`;
}
});