feat: Add specific shift date field for multi-day events with date selector in EventEditor and date badge in ShiftMatrix
This commit is contained in:
@@ -143,7 +143,14 @@ export default function ShiftMatrixTable({
|
||||
) : null}
|
||||
|
||||
<td className="py-3.5 px-4">
|
||||
<div className="font-semibold text-main">{shift.title}</div>
|
||||
<div className="font-semibold text-main flex items-center gap-2 flex-wrap">
|
||||
<span>{shift.title}</span>
|
||||
{shift.date && (
|
||||
<span className="text-[10px] font-mono font-bold text-indigo-400 bg-indigo-500/10 px-2 py-0.5 rounded-sm border border-indigo-500/20">
|
||||
📅 {new Date(shift.date + 'T00:00:00').toLocaleDateString('de-DE', { weekday: 'short', day: '2-digit', month: '2-digit' })}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="text-[11px] font-mono text-muted flex items-center gap-1 mt-0.5">
|
||||
<Clock className="w-3 h-3 text-muted shrink-0" />
|
||||
<span>{shift.start_time} — {shift.end_time} Uhr</span>
|
||||
|
||||
Reference in New Issue
Block a user