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-22 15:49:36 +01:00
parent 8e3b629178
commit 63fc06c817
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

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();