fix: Expanded the history item details size so that it can include all the available information for a given item; was previously being cut off on some screens

This commit is contained in:
2026-01-12 15:28:03 -07:00
parent 68b08d1cd7
commit 47fdee190a
18 changed files with 117 additions and 94 deletions
+1 -1
View File
@@ -116,5 +116,5 @@ fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>) {
.style(secondary_style()) .style(secondary_style())
.alignment(Alignment::Left); .alignment(Alignment::Left);
f.render_widget(Popup::new(message).size(Size::NarrowMessage), f.area()); f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), f.area());
} }
@@ -17,11 +17,6 @@ expression: output
╭─────────────────────────────────── Details ───────────────────────────────────╮ ╭─────────────────────────────────── Details ───────────────────────────────────╮
│Source Title: Test source title │ │Source Title: Test source title │
│Event Type: grabbed │ │Event Type: grabbed │
@@ -31,4 +26,14 @@ expression: output
│NZB Info URL: │ │NZB Info URL: │
│Release Group: │ │Release Group: │
│Age: 0 days │ │Age: 0 days │
│Published Date: 1970-01-01 00:00:00 UTC │
│Download Client: │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
╰─────────────────────────────────────────────────────────────────────────────────╯ ╰─────────────────────────────────────────────────────────────────────────────────╯
@@ -17,11 +17,6 @@ expression: output
╭─────────────────────────────────── Details ───────────────────────────────────╮ ╭─────────────────────────────────── Details ───────────────────────────────────╮
│Source Title: │ │Source Title: │
│Event Type: unknown │ │Event Type: unknown │
@@ -31,4 +26,14 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
╰─────────────────────────────────────────────────────────────────────────────────╯ ╰─────────────────────────────────────────────────────────────────────────────────╯
+1 -1
View File
@@ -153,5 +153,5 @@ fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>) {
.style(secondary_style()) .style(secondary_style())
.alignment(Alignment::Left); .alignment(Alignment::Left);
f.render_widget(Popup::new(message).size(Size::NarrowMessage), f.area()); f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), f.area());
} }
@@ -17,11 +17,6 @@ expression: output
╭─────────────────────────────────── Details ───────────────────────────────────╮ ╭─────────────────────────────────── Details ───────────────────────────────────╮
│Source Title: Test source │ │Source Title: Test source │
│Indexer: │ │Indexer: │
@@ -31,4 +26,14 @@ expression: output
│Download Client Name: │ │Download Client Name: │
│Age: 0 days │ │Age: 0 days │
│Published Date: 1970-01-01 00:00:00 UTC │ │Published Date: 1970-01-01 00:00:00 UTC │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
╰─────────────────────────────────────────────────────────────────────────────────╯ ╰─────────────────────────────────────────────────────────────────────────────────╯
@@ -17,11 +17,6 @@ expression: output
╭─────────────────────────────────── Details ───────────────────────────────────╮ ╭─────────────────────────────────── Details ───────────────────────────────────╮
│Source Title: │ │Source Title: │
│ │ │ │
@@ -31,4 +26,14 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
╰─────────────────────────────────────────────────────────────────────────────────╯ ╰─────────────────────────────────────────────────────────────────────────────────╯
@@ -395,7 +395,7 @@ fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: R
.style(secondary_style()) .style(secondary_style())
.alignment(Alignment::Left); .alignment(Alignment::Left);
f.render_widget(Popup::new(message).size(Size::NarrowMessage), area); f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), area);
} }
fn draw_episode_releases(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) { fn draw_episode_releases(f: &mut Frame<'_>, app: &mut App<'_>, area: Rect) {
@@ -571,7 +571,7 @@ fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: R
.style(secondary_style()) .style(secondary_style())
.alignment(Alignment::Left); .alignment(Alignment::Left);
f.render_widget(Popup::new(message).size(Size::NarrowMessage), area); f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), area);
} }
fn decorate_with_row_style<'a>( fn decorate_with_row_style<'a>(
@@ -431,5 +431,5 @@ fn draw_history_item_details_popup(f: &mut Frame<'_>, app: &mut App<'_>, area: R
.style(secondary_style()) .style(secondary_style())
.alignment(Alignment::Left); .alignment(Alignment::Left);
f.render_widget(Popup::new(message).size(Size::NarrowMessage), area); f.render_widget(Popup::new(message).size(Size::NarrowLongMessage), area);
} }
@@ -19,10 +19,6 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
│ ╭──────────────────────── Details ─────────────────────────╮ │ │ ╭──────────────────────── Details ─────────────────────────╮ │
│ │Source Title: │ │ │ │Source Title: │ │
│ │ │ │ │ │ │ │
@@ -30,6 +26,14 @@ expression: output
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ ╰────────────────────────────────────────────────────────────╯ │ │ ╰────────────────────────────────────────────────────────────╯ │
│ │ │ │
│ │ │ │
@@ -41,8 +45,4 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
@@ -19,10 +19,6 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
│ ╭──────────────────────── Details ─────────────────────────╮ │ │ ╭──────────────────────── Details ─────────────────────────╮ │
│ │Source Title: Test source │ │ │ │Source Title: Test source │ │
│ │Indexer: │ │ │ │Indexer: │ │
@@ -30,6 +26,14 @@ expression: output
│ │Series Match Type: │ │ │ │Series Match Type: │ │
│ │NZB Info URL: │ │ │ │NZB Info URL: │ │
│ │Download Client Name: │ │ │ │Download Client Name: │ │
│ │Age: 0 days │ │
│ │Published Date: 1970-01-01 00:00:00 UTC │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ ╰────────────────────────────────────────────────────────────╯ │ │ ╰────────────────────────────────────────────────────────────╯ │
│ │ │ │
│ │ │ │
@@ -41,8 +45,4 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
@@ -19,10 +19,6 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
│ ╭──────────────────────────── Details ────────────────────────────╮ │ │ ╭──────────────────────────── Details ────────────────────────────╮ │
│ │Source Title: │ │ │ │Source Title: │ │
│ │ │ │ │ │ │ │
@@ -30,6 +26,14 @@ expression: output
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ ╰───────────────────────────────────────────────────────────────────╯ │ │ ╰───────────────────────────────────────────────────────────────────╯ │
│ │ │ │
│ │ │ │
@@ -43,8 +47,4 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
@@ -19,10 +19,6 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
│ ╭──────────────────────────── Details ────────────────────────────╮ │ │ ╭──────────────────────────── Details ────────────────────────────╮ │
│ │Source Title: │ │ │ │Source Title: │ │
│ │ │ │ │ │ │ │
@@ -30,6 +26,14 @@ expression: output
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ ╰───────────────────────────────────────────────────────────────────╯ │ │ ╰───────────────────────────────────────────────────────────────────╯ │
│ │ │ │
│ │ │ │
@@ -43,8 +47,4 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
@@ -19,10 +19,6 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
│ ╭──────────────────────────── Details ────────────────────────────╮ │ │ ╭──────────────────────────── Details ────────────────────────────╮ │
│ │Source Title: Test source │ │ │ │Source Title: Test source │ │
│ │Indexer: │ │ │ │Indexer: │ │
@@ -30,6 +26,14 @@ expression: output
│ │Series Match Type: │ │ │ │Series Match Type: │ │
│ │NZB Info URL: │ │ │ │NZB Info URL: │ │
│ │Download Client Name: │ │ │ │Download Client Name: │ │
│ │Age: 0 days │ │
│ │Published Date: 1970-01-01 00:00:00 UTC │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ │ │ │
│ ╰───────────────────────────────────────────────────────────────────╯ │ │ ╰───────────────────────────────────────────────────────────────────╯ │
│ │ │ │
│ │ │ │
@@ -43,8 +47,4 @@ expression: output
│ │ │ │
│ │ │ │
│ │ │ │
│ │
│ │
│ │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
@@ -19,14 +19,19 @@ expression: output
│Language Profile: English │ │Language Profile: English │
│Monitored: Yes │ │Monitored: Yes │
│Size on Disk: 59.51 GB │ │Size on Disk: 59.51 GB │
╭─────────────────────────────── Details ───────────────────────────────╮
│Source Title:
│╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ │╭ Series Details ─────────────────│No additional data available │───────────────────────────────────╮│
││ Seasons │ History ╭─────────────────────────────── Details ───────────────────────────────╮ ││ ││ Seasons │ History │ │ ││
││───────────────────────────────────│Source Title: │───────────────────────────────────││ ││───────────────────────────────────│ │───────────────────────────────────││
││ │ │ ││
││ │ │ ││
││ │ │ ││
││ │ │ ││
││ │ │ ││
││ │ │ ││
││ │ │ ││ ││ │ │ ││
││ │No additional data available │ ││
││ │ │ ││ ││ │ │ ││
││ │ │ ││ ││ │ │ ││
││ │ │ ││ ││ │ │ ││
@@ -43,10 +48,5 @@ expression: output
││ ││ ││ ││
││ ││ ││ ││
││ ││ ││ ││
││ ││
││ ││
││ ││
││ ││
││ ││
│╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
@@ -19,18 +19,23 @@ expression: output
│Language Profile: English │ │Language Profile: English │
│Monitored: Yes │ │Monitored: Yes │
│Size on Disk: 59.51 GB │ │Size on Disk: 59.51 GB │
╭─────────────────────────────── Details ───────────────────────────────╮
│Source Title: Test source
│Indexer:
│╭ Series Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ │╭ Series Details ─────────────────│Release Group: │───────────────────────────────────╮│
││ Seasons │ History ╭─────────────────────────────── Details ───────────────────────────────╮ ││ ││ Seasons │ History │Series Match Type: │ ││
││───────────────────────────────────│Source Title: Test source │───────────────────────────────────││ ││───────────────────────────────────│NZB Info URL: │───────────────────────────────────││
││ Source Title ▼ │Indexer: │ Date ││ ││ Source Title ▼ │Download Client Name: │ Date ││
││=> Test source │Release Group: │ 2024-02-10 07:28:45 UTC ││ ││=> Test source │Age: 0 days │ 2024-02-10 07:28:45 UTC ││
││ │Series Match Type: │ ││ ││ │Published Date: 1970-01-01 00:00:00 UTC │ ││
││ │NZB Info URL: │ ││ ││ │ │ ││
││ │Download Client Name: │ ││ ││ │ │ ││
││ │Age: 0 days │ ││ ││ │ │ ││
││ │ │ ││
││ │ │ ││
││ │ │ ││
││ │ │ ││
││ │ │ ││
││ ╰─────────────────────────────────────────────────────────────────────────╯ ││ ││ ╰─────────────────────────────────────────────────────────────────────────╯ ││
││ ││ ││ ││
││ ││ ││ ││
@@ -43,10 +48,5 @@ expression: output
││ ││ ││ ││
││ ││ ││ ││
││ ││ ││ ││
││ ││
││ ││
││ ││
││ ││
││ ││
│╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│ │╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯│
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
+2
View File
@@ -14,6 +14,7 @@ pub enum Size {
WideLargePrompt, WideLargePrompt,
Message, Message,
NarrowMessage, NarrowMessage,
NarrowLongMessage,
LargeMessage, LargeMessage,
InputBox, InputBox,
Dropdown, Dropdown,
@@ -35,6 +36,7 @@ impl Size {
Size::WideLargePrompt => (70, 50), Size::WideLargePrompt => (70, 50),
Size::Message => (25, 8), Size::Message => (25, 8),
Size::NarrowMessage => (50, 20), Size::NarrowMessage => (50, 20),
Size::NarrowLongMessage => (50, 40),
Size::LargeMessage => (25, 25), Size::LargeMessage => (25, 25),
Size::InputBox => (30, 13), Size::InputBox => (30, 13),
Size::Dropdown => (20, 30), Size::Dropdown => (20, 30),
+1
View File
@@ -12,6 +12,7 @@ mod tests {
assert_eq!(Size::WideLargePrompt.to_percent(), (70, 50)); assert_eq!(Size::WideLargePrompt.to_percent(), (70, 50));
assert_eq!(Size::Message.to_percent(), (25, 8)); assert_eq!(Size::Message.to_percent(), (25, 8));
assert_eq!(Size::NarrowMessage.to_percent(), (50, 20)); assert_eq!(Size::NarrowMessage.to_percent(), (50, 20));
assert_eq!(Size::NarrowLongMessage.to_percent(), (50, 40));
assert_eq!(Size::LargeMessage.to_percent(), (25, 25)); assert_eq!(Size::LargeMessage.to_percent(), (25, 25));
assert_eq!(Size::InputBox.to_percent(), (30, 13)); assert_eq!(Size::InputBox.to_percent(), (30, 13));
assert_eq!(Size::Dropdown.to_percent(), (20, 30)); assert_eq!(Size::Dropdown.to_percent(), (20, 30));