feat(delete): add undo toasts and harden delete modals

This commit is contained in:
Will Miao
2026-08-11 14:09:10 +08:00
parent eb0f6dd3b6
commit b2c68e6a65
27 changed files with 2555 additions and 51 deletions
+27
View File
@@ -80,6 +80,33 @@
margin-top: 10px;
}
/* Action toast: ghost action button + countdown (e.g. Undo delete) */
.toast-action-btn {
margin-left: auto;
flex-shrink: 0;
padding: 4px 12px;
background: transparent;
color: var(--lora-accent);
border: 1px solid var(--lora-accent);
border-radius: var(--border-radius-sm);
font-size: 0.85em;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease, color 0.2s ease;
}
.toast-action-btn:hover {
background: var(--lora-accent);
color: #fff;
}
.toast-countdown {
flex-shrink: 0;
font-size: 0.75em;
opacity: 0.65;
white-space: nowrap;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.toast {