Add priorities to VJoin/HJoin Segments

This commit is contained in:
Joscha 2022-08-01 17:11:13 +02:00
parent f3b804347d
commit a50f81f9b3
2 changed files with 151 additions and 55 deletions

View file

@ -30,7 +30,7 @@ pub fn msg<M: Msg>(highlighted: bool, indent: usize, msg: &M) -> BoxedWidget {
Segment::new(Padding::new(Text::new(msg.nick())).right(1)),
// TODO Minimum content width
// TODO Minimizing and maximizing messages
Segment::new(Text::new(msg.content()).wrap(true)),
Segment::new(Text::new(msg.content()).wrap(true)).priority(1),
])
.into()
}