Add back vertical line for multi-line messages
This commit is contained in:
parent
781655c41b
commit
4ead592e59
1 changed files with 5 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ use crossterm::style::{ContentStyle, Stylize};
|
|||
use super::super::ChatMsg;
|
||||
use crate::store::Msg;
|
||||
use crate::ui::widgets::join::{HJoin, Segment};
|
||||
use crate::ui::widgets::layer::Layer;
|
||||
use crate::ui::widgets::padding::Padding;
|
||||
use crate::ui::widgets::text::Text;
|
||||
use crate::ui::widgets::BoxedWidget;
|
||||
|
|
@ -29,7 +30,10 @@ pub fn msg<M: Msg + ChatMsg>(highlighted: bool, indent: usize, msg: &M) -> Boxed
|
|||
.right(1),
|
||||
),
|
||||
Segment::new(Indent::new(indent, highlighted)),
|
||||
Segment::new(Padding::new(Text::new(nick)).right(1)),
|
||||
Segment::new(Layer::new(vec![
|
||||
Indent::new(1, false).into(),
|
||||
Padding::new(Text::new(nick)).right(1).into(),
|
||||
])),
|
||||
// TODO Minimum content width
|
||||
// TODO Minimizing and maximizing messages
|
||||
Segment::new(Text::new(content).wrap(true)).priority(1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue