feat(tui): remove count of forges
All checks were successful
Rust / build (push) Successful in 10m29s
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 1m27s

This commit is contained in:
Paul Campbell 2024-08-27 19:15:21 +01:00
parent 35e3676930
commit c6bf287ed1

View file

@ -4,7 +4,6 @@ use git_next_core::ForgeAlias;
use ratatui::{ use ratatui::{
buffer::Buffer, buffer::Buffer,
layout::{Constraint, Direction, Layout, Rect}, layout::{Constraint, Direction, Layout, Rect},
text::Line,
widgets::Widget, widgets::Widget,
}; };
@ -20,13 +19,6 @@ impl<'a> Widget for ConfiguredAppWidget<'a> {
where where
Self: Sized, 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() let layout_forge_list = Layout::default()
.direction(Direction::Vertical) .direction(Direction::Vertical)
.constraints( .constraints(
@ -37,7 +29,7 @@ impl<'a> Widget for ConfiguredAppWidget<'a> {
ViewState::Expanded => Constraint::Fill(1), ViewState::Expanded => Constraint::Fill(1),
}), }),
) )
.split(layout_app[1]); .split(area);
self.forges self.forges
.iter() .iter()