mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user