feat: left align text fieds of container block
This commit is contained in:
committed by
aljazerzen
parent
8d862f21c9
commit
4ba27f126c
@@ -146,7 +146,7 @@ fn format_containers<'a>(i: &ContainerItem, widths: &Columns) -> Line<'a> {
|
|||||||
Line::from(vec![
|
Line::from(vec![
|
||||||
Span::styled(
|
Span::styled(
|
||||||
format!(
|
format!(
|
||||||
"{:>width$}",
|
"{:<width$}",
|
||||||
i.name.to_string(),
|
i.name.to_string(),
|
||||||
width = widths.name.1.into()
|
width = widths.name.1.into()
|
||||||
),
|
),
|
||||||
@@ -162,7 +162,7 @@ fn format_containers<'a>(i: &ContainerItem, widths: &Columns) -> Line<'a> {
|
|||||||
),
|
),
|
||||||
Span::styled(
|
Span::styled(
|
||||||
format!(
|
format!(
|
||||||
"{MARGIN}{:>width$}",
|
"{MARGIN}{:<width$}",
|
||||||
i.status,
|
i.status,
|
||||||
width = &widths.status.1.into()
|
width = &widths.status.1.into()
|
||||||
),
|
),
|
||||||
@@ -198,7 +198,7 @@ fn format_containers<'a>(i: &ContainerItem, widths: &Columns) -> Line<'a> {
|
|||||||
),
|
),
|
||||||
Span::styled(
|
Span::styled(
|
||||||
format!(
|
format!(
|
||||||
"{MARGIN}{:>width$}",
|
"{MARGIN}{:<width$}",
|
||||||
i.image.to_string(),
|
i.image.to_string(),
|
||||||
width = widths.image.1.into()
|
width = widths.image.1.into()
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user