changed output formatting
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Thomas Eppers 2023-02-20 14:31:07 +01:00
parent 445b21975a
commit dee25f911b
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ impl Ui {
let (tags, state) = ui_data.tags.render(render_state);
let more_chunks = Layout::default()
.direction(Direction::Horizontal)
.constraints([Constraint::Min(15), Constraint::Length(29)].as_ref())
.constraints([Constraint::Min(15), Constraint::Length(30)].as_ref())
.split(chunks[1]);
rect.render_stateful_widget(tags, more_chunks[0], state);
rect.render_widget(ui_data.details.render(), more_chunks[1]);

View File

@ -26,7 +26,7 @@ impl Details {
let mut lines = vec![format!("{:^10}|{:^6}|{:^6}", "ARCH", "OS", "SIZE")];
for d in &self.details {
lines.push(format!(
"{:^10}|{:^6}|{:^6}MB",
"{:>10}|{:>6}|{:>6} MB",
format!(
"{}{}",
d.arch.clone().unwrap_or_default(),