Render nicer indent for multi-line messages
This commit is contained in:
parent
62033ee5bb
commit
54e5a7c97c
1 changed files with 3 additions and 2 deletions
|
|
@ -61,12 +61,13 @@ fn render_block<M: Msg>(frame: &mut Frame, pos: Pos, size: Size, block: &Block<M
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
render_indent(frame, pos.x, y, block.cursor, block.indent);
|
|
||||||
|
|
||||||
if i == 0 {
|
if i == 0 {
|
||||||
|
render_indent(frame, pos.x, y, block.cursor, block.indent);
|
||||||
render_time(frame, pos.x, y, block.cursor, block.time);
|
render_time(frame, pos.x, y, block.cursor, block.time);
|
||||||
render_nick(frame, pos.x, y, block.indent, &msg.nick);
|
render_nick(frame, pos.x, y, block.indent, &msg.nick);
|
||||||
} else {
|
} else {
|
||||||
|
render_indent(frame, pos.x, y, false, block.indent + 1);
|
||||||
|
render_indent(frame, pos.x, y, block.cursor, block.indent);
|
||||||
render_time(frame, pos.x, y, block.cursor, None);
|
render_time(frame, pos.x, y, block.cursor, None);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue