diff --git a/frontend/src/components/torrent/table.rs b/frontend/src/components/torrent/table.rs index c356dd9..cddd311 100644 --- a/frontend/src/components/torrent/table.rs +++ b/frontend/src/components/torrent/table.rs @@ -621,17 +621,24 @@ fn TorrentRow( {move || visible_columns.get().contains("Progress").then({ let percent = t.percent_complete; let status = t.status.clone(); - move || view! { - -
- div]:bg-destructive".to_string() } else { "bg-secondary w-32".to_string() } - /> - {format!("{:.1}%", percent)} -
-
- }.into_any() + move || { + let class = if status == shared::TorrentStatus::Error { + "bg-destructive/20 [&>div]:bg-destructive".to_string() + } else { + "bg-secondary w-32".to_string() + }; + view! { + +
+ + {format!("{:.1}%", percent)} +
+
+ } + } }).into_any()} {move || visible_columns.get().contains("Status").then({ @@ -780,8 +787,8 @@ fn TorrentCard( - }.into_any() - }.into_any() + } + } } }.into_any()