auto-sync: 2026-05-18 11:54:03
This commit is contained in:
@@ -192,6 +192,17 @@ function TaskCard({ task, subtaskCount, subtaskDone, activeStage, onOpen }: {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* v2.7 子 Task 进度指示器 */}
|
||||
{subtaskCount > 0 && (
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6, marginBottom: 8, padding: '4px 8px', background: '#1a1f2e', borderRadius: 6 }}>
|
||||
<span style={{ fontSize: 10, fontFamily: 'monospace', color: '#6a9eff', letterSpacing: 1 }}>
|
||||
{Array.from({ length: subtaskCount }, (_, i) => i < subtaskDone ? '■' : '□').join('')}
|
||||
</span>
|
||||
<span style={{ fontSize: 10, color: 'var(--muted)' }}>{subtaskDone}/{subtaskCount}</span>
|
||||
{activeStage && <span style={{ fontSize: 10, color: '#f59e0b' }}>· {activeStage}</span>}
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', borderTop: '1px solid var(--line)', paddingTop: 8 }}>
|
||||
<div style={{ display: 'flex', gap: 6, alignItems: 'center' }}>
|
||||
<span style={{ fontSize: 10, padding: '1px 5px', borderRadius: 3, background: `${rm.color}22`, color: rm.color }}>{rm.label}</span>
|
||||
|
||||
Reference in New Issue
Block a user