mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-11 03:59:09 +00:00
fix: resolve deadlock, redownload failure, and UI issues
- Fix re-entrant deadlock in `legacy_download_queue_paths` by scoping DB lock - Ensure `release_registered_id` runs in `remove_download` even if cleanup fails - Add fallback to `std::fs::remove_file` if `trash::delete` fails - Ignore 'cannot be paused now' error in `detach_download_for_reconfigure` - Apply `break-all` and `whitespace-pre-wrap` to Toast messages to prevent UI overflow
This commit is contained in:
@@ -162,7 +162,7 @@ const ToastItem: React.FC<{ toast: ToastState; removeToast: (id: string) => void
|
||||
onBlur={() => setIsHovered(false)}
|
||||
>
|
||||
<div className="mt-0.5 shrink-0">{Icon}</div>
|
||||
<div className="font-semibold flex-1 tracking-tight">{toast.message}</div>
|
||||
<div className="font-semibold flex-1 tracking-tight break-all whitespace-pre-wrap">{toast.message}</div>
|
||||
<button
|
||||
onClick={() => removeToast(toast.id)}
|
||||
className="shrink-0 ml-2 mt-0.5 opacity-60 hover:opacity-100 hover:bg-black/5 dark:hover:bg-white/10 p-1 rounded-full transition-all active:scale-90"
|
||||
|
||||
Reference in New Issue
Block a user