auto-sync: 2026-05-20 13:23:38

This commit is contained in:
cfdaily
2026-05-20 13:23:38 +08:00
parent 855f06dcd0
commit 5f290d3835
+1 -1
View File
@@ -485,7 +485,7 @@ export default function EdictBoard() {
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(340px, 1fr))', gap: 12, marginTop: 12 }}>
{filtered.map(t => {
const sub = subtaskIndex[t.id] || { total: 0, done: 0, activeStage: null };
return <TaskCard key={t.id} task={t} subtaskCount={sub.total} subtaskDone={sub.done} activeStage={sub.activeStage} onOpen={() => setModalTaskId(t.id)} onAction={(a) => handleCardAction(t.id, a, (t as any)._projectId)}} />;
return <TaskCard key={t.id} task={t} subtaskCount={sub.total} subtaskDone={sub.done} activeStage={sub.activeStage} onOpen={() => setModalTaskId(t.id)} onAction={(a: string) => handleCardAction(t.id, a, (t as any)._projectId)} />;
})}
{filtered.length === 0 && tasks.length > 0 && (
<div style={{ gridColumn: '1/-1', textAlign: 'center', padding: 40, color: 'var(--muted)' }}></div>