feat(ui): Add series support Sonarr

This commit is contained in:
2024-12-02 13:53:28 -07:00
parent d7f6d12f59
commit 82e51be096
20 changed files with 599 additions and 44 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
use crate::app::context_clues::build_context_clue_string;
use crate::app::radarr::radarr_context_clues::CONFIRMATION_PROMPT_CONTEXT_CLUES;
use crate::app::context_clues::{build_context_clue_string, CONFIRMATION_PROMPT_CONTEXT_CLUES};
use crate::ui::styles::ManagarrStyle;
use crate::ui::utils::{layout_paragraph_borderless, title_block_centered};
use crate::ui::widgets::button::Button;
+2
View File
@@ -21,6 +21,7 @@ pub enum Size {
Small,
Medium,
Large,
Long,
}
impl Size {
@@ -37,6 +38,7 @@ impl Size {
Size::Small => (40, 40),
Size::Medium => (60, 60),
Size::Large => (75, 75),
Size::Long => (65, 80),
}
}
}
+1
View File
@@ -17,6 +17,7 @@ mod tests {
assert_eq!(Size::Small.to_percent(), (40, 40));
assert_eq!(Size::Medium.to_percent(), (60, 60));
assert_eq!(Size::Large.to_percent(), (75, 75));
assert_eq!(Size::Long.to_percent(), (65, 80));
}
#[test]