minor changes

This commit is contained in:
2025-11-10 21:54:23 +01:00
parent f4a79a6bc4
commit 545074a3b8
3 changed files with 33 additions and 21 deletions

View File

@@ -210,14 +210,21 @@ const NotificationPanel = ({
{locationLoading ? (
<p>Standort wird geladen...</p>
) : location ? (
<p>
Aktueller Standort: {location.lat.toFixed(4)}, {location.lon.toFixed(4)}
{location.label && (
<span className="ml-1 font-semibold text-blue-900"> {location.label}</span>
)}{' '}
(
{location.updatedAt ? new Date(location.updatedAt).toLocaleString('de-DE') : 'Zeit unbekannt'})
</p>
<div>
<p>
Aktueller Standort: {location.lat.toFixed(4)}, {location.lon.toFixed(4)}
{location.label && (
<span className="ml-1 font-semibold text-blue-900"> {location.label}</span>
)}{' '}
(
{location.updatedAt ? new Date(location.updatedAt).toLocaleString('de-DE') : 'Zeit unbekannt'})
</p>
{location.labelDistanceKm !== undefined && (
<p className="text-xs text-blue-800 mt-1">
Nächster bekannte Betrieb ca. {location.labelDistanceKm.toFixed(1)} km entfernt.
</p>
)}
</div>
) : (
<p>Kein Standort hinterlegt.</p>
)}