Tweak main content column height

This commit is contained in:
Patrick Auernig 2023-08-18 19:14:36 +02:00
parent 569454dd49
commit 0bff161f01
2 changed files with 5 additions and 4 deletions

View File

@ -13,10 +13,11 @@ use super::State;
type Frame<'a> = ratatui::Frame<'a, CrosstermBackend<Stdout>>;
// TODO: scroll main content if not enough space available
pub(super) fn render(state: &mut State, frame: &mut Frame) {
let rows = Layout::default()
.direction(Direction::Vertical)
.constraints([Constraint::Min(40), Constraint::Length(2)])
.constraints([Constraint::Min(36), Constraint::Length(2)])
.split(frame.size());
info::render(state, frame, rows[0]);

View File

@ -41,9 +41,9 @@ fn render_info(state: &mut State, mut frame: &mut Frame, area: Rect) {
let left_column = Layout::default()
.direction(Direction::Vertical)
.constraints([
Constraint::Ratio(1, 3),
Constraint::Ratio(1, 3),
Constraint::Ratio(1, 3),
Constraint::Min(15),
Constraint::Min(10),
Constraint::Min(11),
])
.split(columns[0]);