auto-sync: 2026-05-21 09:06:31
This commit is contained in:
@@ -210,20 +210,11 @@ function TaskCard({ task, subtaskCount, subtaskDone, activeStage, onOpen, onActi
|
||||
|
||||
<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>
|
||||
<span style={{ width: 8, height: 8, borderRadius: 4, display: 'inline-block', background: STATUS_DOT_COLOR[task.status] || '#6b7280' }} />
|
||||
{task.retry_count > 0 && <span style={{ fontSize: 10, color: '#f59e0b' }}>🔄 x{task.retry_count}</span>}
|
||||
{task.risk_level && task.risk_level !== 'standard' && <span style={{ fontSize: 10, padding: '1px 5px', borderRadius: 3, background: `${rm.color}22`, color: rm.color }}>⚠️ {rm.label}</span>}
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: 4, alignItems: 'center' }}>
|
||||
{/* 快捷动作按钮 */}
|
||||
{(CARD_ACTIONS[task.status] || []).map((btn, i) => (
|
||||
<button key={i} onClick={(e) => { e.stopPropagation(); onAction(btn.action); }} style={{
|
||||
padding: '2px 8px', borderRadius: 4, fontSize: 10, cursor: 'pointer',
|
||||
background: btn.bg, color: btn.color, border: `1px solid ${btn.border}`, fontWeight: 600,
|
||||
transition: 'opacity .15s', opacity: 0.9,
|
||||
}} onMouseEnter={e => (e.currentTarget.style.opacity = '1')} onMouseLeave={e => (e.currentTarget.style.opacity = '0.9')}>
|
||||
{btn.icon} {btn.label}
|
||||
</button>
|
||||
))}
|
||||
{task.deadline && (
|
||||
<span style={{ fontSize: 10, color: new Date(task.deadline).getTime() - Date.now() < 3600000 ? '#ff5270' : 'var(--muted)' }}>
|
||||
📅 {formatDeadline(task.deadline)}
|
||||
|
||||
Reference in New Issue
Block a user