From 36b480f687bf74fb123ffa3f32ae25ea89f84507 Mon Sep 17 00:00:00 2001 From: spinline Date: Fri, 13 Feb 2026 19:53:32 +0300 Subject: [PATCH] fix: resolve compilation and type inference issues in torrent table after progress integration --- frontend/src/components/torrent/table.rs | 33 ++++++++++++++---------- 1 file changed, 20 insertions(+), 13 deletions(-) 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()