changed output formatting
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
445b21975a
commit
dee25f911b
@ -192,7 +192,7 @@ impl Ui {
|
|||||||
let (tags, state) = ui_data.tags.render(render_state);
|
let (tags, state) = ui_data.tags.render(render_state);
|
||||||
let more_chunks = Layout::default()
|
let more_chunks = Layout::default()
|
||||||
.direction(Direction::Horizontal)
|
.direction(Direction::Horizontal)
|
||||||
.constraints([Constraint::Min(15), Constraint::Length(29)].as_ref())
|
.constraints([Constraint::Min(15), Constraint::Length(30)].as_ref())
|
||||||
.split(chunks[1]);
|
.split(chunks[1]);
|
||||||
rect.render_stateful_widget(tags, more_chunks[0], state);
|
rect.render_stateful_widget(tags, more_chunks[0], state);
|
||||||
rect.render_widget(ui_data.details.render(), more_chunks[1]);
|
rect.render_widget(ui_data.details.render(), more_chunks[1]);
|
||||||
|
@ -26,7 +26,7 @@ impl Details {
|
|||||||
let mut lines = vec![format!("{:^10}|{:^6}|{:^6}", "ARCH", "OS", "SIZE")];
|
let mut lines = vec![format!("{:^10}|{:^6}|{:^6}", "ARCH", "OS", "SIZE")];
|
||||||
for d in &self.details {
|
for d in &self.details {
|
||||||
lines.push(format!(
|
lines.push(format!(
|
||||||
"{:^10}|{:^6}|{:^6}MB",
|
"{:>10}|{:>6}|{:>6} MB",
|
||||||
format!(
|
format!(
|
||||||
"{}{}",
|
"{}{}",
|
||||||
d.arch.clone().unwrap_or_default(),
|
d.arch.clone().unwrap_or_default(),
|
||||||
|
Loading…
Reference in New Issue
Block a user