mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-22 02:50:39 +08:00
cli: Fix multiline patch show description output
This commit is contained in:
@@ -7,9 +7,8 @@ use radicle::cob::patch;
|
||||
use radicle::git;
|
||||
use radicle::storage::git::Repository;
|
||||
use radicle_term::{
|
||||
label,
|
||||
table::{Table, TableOptions},
|
||||
Element, Paint, VStack,
|
||||
textarea, Element, Paint, VStack,
|
||||
};
|
||||
|
||||
use crate::terminal as term;
|
||||
@@ -71,7 +70,10 @@ pub fn run(
|
||||
.border(Some(term::colors::FAINT))
|
||||
.child(attrs)
|
||||
.children(if !description.is_empty() {
|
||||
vec![term::Label::blank(), label(term::format::dim(description))]
|
||||
vec![
|
||||
term::Label::blank().boxed(),
|
||||
textarea(term::format::dim(description)).boxed(),
|
||||
]
|
||||
} else {
|
||||
vec![]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user