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
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:
parent
35e3676930
commit
c6bf287ed1
1 changed files with 1 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue