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:
Alexis Sellier
2023-03-23 14:43:21 +01:00
parent 8e3b629178
commit 63fc06c817
+2 -3
View File
@@ -70,11 +70,10 @@ pub fn run(
let meta = VStack::default()
.border(Some(term::colors::FAINT))
.child(attrs)
.blank()
.children(if !description.is_empty() {
Some(label(term::format::dim(description)))
vec![term::Label::blank(), label(term::format::dim(description))]
} else {
None
vec![]
});
meta.print();