Einsatznotizen Styling

This commit is contained in:
Nicolas
2025-04-25 11:16:22 +02:00
parent 9e443240fe
commit 2eb2f4bf2b

View File

@@ -187,10 +187,19 @@ const FMSStatusHistory = ({ mission }: { mission: Mission }) => {
return (
<li key={index} className="flex items-center gap-2">
<span className="text-base-content">
{new Date(entry.timeStamp).toLocaleTimeString()}
{new Date(entry.timeStamp).toLocaleTimeString([], {
hour: "2-digit",
minute: "2-digit",
})}
</span>
<span className="font-bold text-base">
{entry.data.user.firstname} {entry.data.user.lastname}
<span
className="font-bold text-base"
style={{
color: FMS_STATUS_TEXT_COLORS[6],
}}
>
{entry.data.user.firstname[0].toUpperCase()}
{entry.data.user.lastname[0].toUpperCase()}
</span>
<span className="text-base-content">{entry.data.message}</span>
</li>