lib: Fix split container margins

This commit is contained in:
Erik Kundt
2024-06-19 12:49:48 +02:00
parent 4f8696657a
commit c2b3a874fd
+2 -2
View File
@@ -568,7 +568,7 @@ where
.direction(Direction::Vertical)
.constraints(vec![Constraint::Min(1)])
.vertical_margin(1)
.horizontal_margin(2)
.horizontal_margin(1)
.areas(top_area);
top.render(RenderProps::from(top_area).focus(render.focus), frame)
}
@@ -584,7 +584,7 @@ where
let [bottom_area, _] = Layout::default()
.direction(Direction::Vertical)
.constraints(vec![Constraint::Min(1), Constraint::Length(1)])
.horizontal_margin(2)
.horizontal_margin(1)
.areas(bottom_area);
bottom.render(RenderProps::from(bottom_area).focus(render.focus), frame)
}