Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.
fix(tui): align provider picker popup item columns
Samir Hossains805b0a9a7978
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7f9792a..04cd0de 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -38,6 +38,7 @@- Auto-sized `/settings` modal height dynamically to fit the exact row count of the active category and balanced modal width to 60 columns in `src/tui/overlay.rs` and `src/tui/widgets/settings.rs`, removing the oversized right-side void and bottom blank areas while maintaining uniform margins around all borders.- **Modal Backdrop Dimming for Background Deck & Search**:- Dimmed favorites/continue-watching card items, browse preset suggestions, and the search bar provider pill when modal popups (such as the provider picker) are active in `src/tui/screens/home.rs`, ensuring background elements properly recede visually.+ - Aligned provider labels into a clean vertical column in the provider picker popup in `src/tui/screens/home.rs`, applying consistent 4-space indentation for unselected rows so names align with the 2-space checkmark indicator (`✓ `).- **Update Check In-Flight Notification Replacement**:- Replaced the in-flight `"Checking for updates"` notification toast with the final outcome toast (`Up to date` or `Update check failed`) upon completion in `src/tui/app/system.rs`, avoiding duplicate stacked update notifications.- **Live TV Search Isolation & Balanced Landing Geometry**:diff --git a/src/tui/screens/home.rs b/src/tui/screens/home.rsindex 1bb0bb7..d189bbf 100644--- a/src/tui/screens/home.rs+++ b/src/tui/screens/home.rs@@ -2495,10 +2495,14 @@ fn render_provider_popup(.iter().map(|provider| {let is_active = *provider == state.active_provider;- let active_prefix = if is_active {- if state.basic_terminal { "* " } else { "✓ " }+ let (active_prefix, prefix_width) = if is_active {+ if state.basic_terminal {+ ("* ", 2)+ } else {+ ("✓ ", 2)+ }} else {- " "+ ("", 0)};let active_style = if is_active {theme.success.add_modifier(Modifier::BOLD)@@ -2507,10 +2511,9 @@ fn render_provider_popup(};let label_style = theme.text;ListItem::new(Line::from(vec![- Span::raw(" "),+ Span::raw(if prefix_width == 0 { " " } else { " " }),Span::styled(active_prefix, active_style),Span::styled(provider.label(), label_style),- Span::raw(" "),]))}).collect();@@ -2945,9 +2948,9 @@ mod tests {rendered.push('\n');}assert!(rendered.contains("Providers"));- assert!(rendered.contains("MovieBox"));- assert!(rendered.contains("4KHDHub"));- assert!(rendered.contains("✓"));+ assert!(rendered.contains(" ✓ MovieBox"));+ assert!(rendered.contains(" 4KHDHub"));+ assert!(rendered.contains(" Dramachi"));assert!(!rendered.contains('●'));assert!(!rendered.contains('○'));}