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