Retain interrupted download progress cards and add in-place retry action

- Keep failed or interrupted downloads in active downloads queue instead of dismissing immediately
- Present interrupted state with error tooltip, distinct status chip, and progress percentage
- Add in-place Retry download play action that resumes downloading from existing partial files
- Support dismissing interrupted downloads via cancel button
- Update CSS styling and unit tests for download action handlers and progress states
This commit is contained in:
Dariusz L
2026-10-26 16:42:56 +01:00
parent c62edd755c
commit d9286b53d5
7 changed files with 186 additions and 23 deletions
+23
View File
@@ -769,6 +769,29 @@
border-radius: var(--mr-missing-chip-radius);
}
.mr-download-queue-item.mr-download-queue-item-error {
border-color: rgba(239, 68, 68, 0.35);
}
.mr-download-queue-status.mr-download-queue-status-error {
color: var(--mr-color-danger-bright, #ff4d4f);
background: var(--mr-badge-error-bg, rgba(239, 68, 68, 0.16));
border-color: var(--mr-badge-error-border, rgba(239, 68, 68, 0.34));
}
.mr-download-queue-progress .mr-progress-fill.mr-progress-fill-error {
background: var(--mr-color-danger-bright, #ff4d4f);
box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}
.mr-download-queue-stat.mr-download-queue-stat-error {
max-width: 220px;
overflow: hidden;
color: var(--mr-color-danger-bright, #ff4d4f);
text-overflow: ellipsis;
white-space: nowrap;
}
.mr-download-history-toolbar {
display: flex;
justify-content: flex-end;