mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 18:14:11 +02:00
dynamic exception message height
This commit is contained in:
parent
04a0e87013
commit
43fea7cb16
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ impl StatefulWidget for SingleLog<'_> {
|
||||||
|
|
||||||
let layout = Layout::default()
|
let layout = Layout::default()
|
||||||
.direction(Direction::Vertical)
|
.direction(Direction::Vertical)
|
||||||
.constraints(vec![Constraint::Min(7), Constraint::Percentage(100)])
|
.constraints(vec![Constraint::Min(par.line_count(area.width) as u16 + 1), Constraint::Percentage(100)])
|
||||||
.split(area);
|
.split(area);
|
||||||
|
|
||||||
par.render(layout[0], buf);
|
par.render(layout[0], buf);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue