From c2495232cc3f9327e5ce55660b36973eb7f81fa4 Mon Sep 17 00:00:00 2001 From: Dicken Date: Wed, 24 Jun 2026 01:42:30 +0200 Subject: [PATCH] Kanban: Modal-Scroll auf Mobile (Buttons immer sichtbar), Erstellungsdatum auf Karte --- frontend/src/tools/kanban.jsx | 126 ++++++++++++++++++++-------------- 1 file changed, 75 insertions(+), 51 deletions(-) diff --git a/frontend/src/tools/kanban.jsx b/frontend/src/tools/kanban.jsx index e19fc38..ec76a15 100644 --- a/frontend/src/tools/kanban.jsx +++ b/frontend/src/tools/kanban.jsx @@ -9,7 +9,13 @@ const PRIORITIES = [ { id: 'high', label: 'Hoch', color: '#ff6b9d' }, ]; const COL_COLORS = ['#4ecdc4','#60a5fa','#a78bfa','#ff6b9d','#ffe66d','#fb923c','#4ade80','#f472b6','#94a3b8']; -const prioOf = id => PRIORITIES.find(p => p.id === id) || PRIORITIES[0]; +const fmtCardDate = s => { + if (!s) return ''; + const d = new Date(String(s).replace(' ', 'T')); + if (isNaN(d)) return ''; + return d.toLocaleDateString('de-DE', { day:'2-digit', month:'2-digit', year:'numeric' }) + + ' ' + d.toLocaleTimeString('de-DE', { hour:'2-digit', minute:'2-digit' }); +}; // ── Karten-Modal ────────────────────────────────────────────────────────────── function CardModal({ card, columnId, columns, onSave, onClose, toast }) { @@ -64,64 +70,74 @@ function CardModal({ card, columnId, columns, onSave, onClose, toast }) { style={{ position:'fixed',inset:0,background:'rgba(0,0,0,0.7)',zIndex:1000, display:'flex',alignItems:isMob?'flex-end':'center',justifyContent:'center',padding:isMob?0:20 }}>
- {isMob &&
} - -
-
{card ? 'KARTE BEARBEITEN' : 'NEUE KARTE'}
- -
- - setTitle(e.target.value)} onKeyDown={onKey} - placeholder="Titel" style={{ ...S.inp, marginBottom:10 }} /> - -