cli: Don't have blank line if no description
Changes `rad patch show` to not have a blank line when there is no description.
This commit is contained in:
parent
8e3b629178
commit
63fc06c817
|
|
@ -70,11 +70,10 @@ pub fn run(
|
||||||
let meta = VStack::default()
|
let meta = VStack::default()
|
||||||
.border(Some(term::colors::FAINT))
|
.border(Some(term::colors::FAINT))
|
||||||
.child(attrs)
|
.child(attrs)
|
||||||
.blank()
|
|
||||||
.children(if !description.is_empty() {
|
.children(if !description.is_empty() {
|
||||||
Some(label(term::format::dim(description)))
|
vec![term::Label::blank(), label(term::format::dim(description))]
|
||||||
} else {
|
} else {
|
||||||
None
|
vec![]
|
||||||
});
|
});
|
||||||
|
|
||||||
meta.print();
|
meta.print();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue