Files
fusion/packages/dashboard/app/components/ConfirmDialog.css
gsxdsm 6aa1ff0fb5 feat(FN-5475): add allow-resurrection control to task delete flow
Implements the allow-resurrection toggle for task deletion, letting users prevent deleted tasks from being automatically restored. Changes span the `ConfirmDialog` component, `TaskDetailModal`, and the `useConfirm` hook, with comprehensive test coverage across the dashboard API and UI layers.

Fusion-Task-Id: FN-5475

Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
Fusion-Task-Id: FN-5475
2026-05-23 20:44:01 -07:00

56 lines
1.3 KiB
CSS

.confirm-dialog {
width: min(calc(var(--space-xl) * 18), calc(100vw - var(--space-2xl)));
}
.confirm-dialog__body {
color: var(--text-muted);
line-height: 1.5;
padding: 0 var(--space-xl) var(--space-lg);
white-space: pre-wrap;
overflow-y: auto;
}
.confirm-dialog__checkbox {
display: grid;
gap: var(--space-2xs);
margin: 0 var(--space-xl) var(--space-lg);
}
.confirm-dialog__checkbox-description {
color: var(--text-muted);
margin-inline-start: var(--space-lg);
}
.confirm-dialog__actions {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
gap: var(--space-sm);
}
@media (max-width: 768px) {
.confirm-dialog-overlay {
align-items: center;
padding-top: max(var(--space-md), env(safe-area-inset-top, 0px));
padding-right: var(--space-sm);
padding-bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px));
padding-left: var(--space-sm);
}
.confirm-dialog {
width: min(100%, calc(var(--space-xl) * 16));
max-height: calc(100dvh - (var(--space-md) * 2) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
height: auto;
border: var(--btn-border-width) solid var(--border);
border-radius: var(--radius-lg);
padding-top: 0;
padding-bottom: 0;
overflow: hidden;
}
.confirm-dialog__actions {
flex-direction: column;
align-items: stretch;
}
}