From c6bf287ed12ce0ba351647b070df13de93bc9768 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 27 Aug 2024 19:15:21 +0100 Subject: [PATCH] feat(tui): remove count of forges --- crates/cli/src/tui/components/configured_app.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/cli/src/tui/components/configured_app.rs b/crates/cli/src/tui/components/configured_app.rs index cc9ad04..493c4a7 100644 --- a/crates/cli/src/tui/components/configured_app.rs +++ b/crates/cli/src/tui/components/configured_app.rs @@ -4,7 +4,6 @@ use git_next_core::ForgeAlias; use ratatui::{ buffer::Buffer, layout::{Constraint, Direction, Layout, Rect}, - text::Line, widgets::Widget, }; @@ -20,13 +19,6 @@ impl<'a> Widget for ConfiguredAppWidget<'a> { where Self: Sized, { - let layout_app = Layout::default() - .direction(Direction::Vertical) - .constraints(vec![Constraint::Length(1), Constraint::Fill(1)]) - .split(area); - - Line::from(format!("Forges: ({})", self.forges.keys().len())).render(layout_app[0], buf); - let layout_forge_list = Layout::default() .direction(Direction::Vertical) .constraints( @@ -37,7 +29,7 @@ impl<'a> Widget for ConfiguredAppWidget<'a> { ViewState::Expanded => Constraint::Fill(1), }), ) - .split(layout_app[1]); + .split(area); self.forges .iter()