diff --git a/rm-main/src/tui/tabs/torrents/popups/details.rs b/rm-main/src/tui/tabs/torrents/popups/details.rs index df65e3f..2104a9b 100644 --- a/rm-main/src/tui/tabs/torrents/popups/details.rs +++ b/rm-main/src/tui/tabs/torrents/popups/details.rs @@ -3,7 +3,7 @@ use ratatui::{ widgets::{block::Title, Block, BorderType, Clear, Paragraph, Wrap}, }; use rm_config::CONFIG; -use rm_shared::action::Action; +use rm_shared::{action::Action, utils::bytes_to_human_format}; use style::Styled; use crate::tui::{ @@ -76,7 +76,10 @@ impl Component for DetailsPopup { let ratio = Line::from(format!("Ratio: {}", self.torrent.upload_ratio)); - let size_line = Line::from(format!("Size: {}", self.torrent.size_when_done)); + let size_line = Line::from(format!( + "Size: {}", + bytes_to_human_format(self.torrent.size_when_done) + )); let activity_line = Line::from(format!("Last activity: {}", self.torrent.activity_date)); diff --git a/rm-main/src/tui/tabs/torrents/tasks/default.rs b/rm-main/src/tui/tabs/torrents/tasks/default.rs index 99598dd..403cf68 100644 --- a/rm-main/src/tui/tabs/torrents/tasks/default.rs +++ b/rm-main/src/tui/tabs/torrents/tasks/default.rs @@ -31,7 +31,7 @@ impl Component for Default { line.push_span(Span::raw(format!("{} ", CONFIG.icons.help))); } line.push_span(Span::styled(keys, keybinding_style())); - line.push_span(Span::raw(" - details")); + line.push_span(Span::raw(" - view torrent")); } } f.render_widget(line, rect);