Start working on tree layouting

This commit is contained in:
Joscha 2022-06-13 20:00:23 +02:00
parent 6fdce9db1e
commit 021d5a8943
4 changed files with 159 additions and 49 deletions

View file

@ -57,9 +57,10 @@ impl<M: Msg, S: MsgStore<M>> Chat<M, S> {
pub fn render(&mut self, frame: &mut Frame, pos: Pos, size: Size) {
match self.mode {
Mode::Tree => self
.tree
.render(&mut self.store, &self.room, frame, pos, size),
Mode::Tree => {
self.tree
.render(&mut self.store, &self.room, &self.cursor, frame, pos, size)
}
}
}
}